normalify

Normalize different variable value types - e.g. "1" becomes 1

Normalify

Normalize different variable value types - e.g. "1" becomes 1

  1. Install Node.js
  2. npm install --save normalify
  1. See Browserify
var normalify = require('normalify');
var result = normalify({
    a: 'one',
    b: '1',
    c: '1.1',
    d: 1,
    e: 1.1,
    f: {
        a: 'one',
        b: '1',
        c: '1.1',
        d: 1,
        e: 1.1
    }
});
console.log(JSON.stringify(result,null,4));
/* ouputs:
{
    a: 'one',
    b: 1,
    c: 1.1,
    d: 1,
    e: 1.1,
    f: {
        a: 'one',
        b: 1,
        c: 1.1,
        d: 1,
        e: 1.1
    }
}
*/

You can discover the history inside the History.md file

Check out the Backers.md file to discover all the amazing people who financially supported the development of this project.

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd