package
node-postgres without the bindings
npm install pg.jsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
The exact same node-postgres module without any of the C/C++ stuff. If you're just using the pure JavaScript bindings, there's really no reason to wait for the native stuff to compile.
npm install pg.js
//exact same code, you can just change the string
//in your requires from pg to pg.js and you're done
var pg = require('pg.js')
pg.connect(function(err, client, release) {
if (err) throw err;
client.query('SELECT NOW()', function(err, res) {
release()
if (err) throw err;
console.log(res.rows[0])
})
})I pull in the node-postgres repo and delete the /src folder and the .gyp file.
Then I publish the same code to npm as pg.js. So easy.
MIT
Estimated unpacked size across 15 packages.
205.6 kB
Includes dependencies.
6 direct · 6 outdated
0.0.3
1.0.6
1.6.0
4.1.0
2.1.1
3.9.0
1.0.0
2.0.0
0.2.0
1.0.0
0.1.3
2.14.1