objecttransform

0.0.2 • Public • Published

#objectTransform

Utility library to transform object a little faster.

Install

$ npm install objectTransform --save 

Example

var ts = require('objectTransform');

 var result =  ts.deep({'servername': 'pro.mac', upstreamPort: 7000, upstreamHost: '10.1.16.119', ws: true});
 
 //transforming the camelCase to a deep object structure.
 { servername: 'pro.mac',
   upstream: { port: 7000, host: '10.1.16.119' },
   ws: true }

//convert back to flat object..
ts.flat(result);
 

API

License

2015 © Christoph Hagenbrock

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i objecttransform

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • chbrock