Skip to content

brianc/node-pg-parse-float

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Add parse-float functionality back to node-postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published