JSPM

normalify

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 326
  • Score
    100M100P100Q86087F

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

Package Exports

  • normalify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (normalify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Normalify

Build Status NPM version Flattr this project

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

Install

Backend

  1. Install Node.js
  2. npm install --save normalify

Frontend

  1. See Browserify

Usage

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
    }
}
*/

History

You can discover the history inside the History.md file

Backers

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

License

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