Add parse-float functionality back to node-postgres
JavaScript
Latest commit 1087b5d Apr 11, 2013 @brianc Update README.md
Permalink
Failed to load latest commit information.
.gitignore
.travis.yaml
README.md Update README.md Apr 11, 2013
index.js initial commit Apr 11, 2013
package.json initial commit Apr 11, 2013
test.js initial commit Apr 11, 2013

README.md

pg-parse-float

Restore 'parseFloat' functionailty to node-postgres. Allowing it to return float column types as JavaScript floats.

install

npm install pg-parse-float

use

var pg = require('pg');
require('pg-parse-float')(pg);

//now all your floats (float4, float8, numeric) will come back out
//as floats in JavaScript

notes

This can be used as an example of how to extend or override the built in type parsers for other types as well.

There were some discussions around this:

license

MIT