npm.io
1.0.2 • Published 7 years ago

data-normalizer

Licence
MIT
Version
1.0.2
Deps
0
Size
5 kB
Vulns
0
Weekly
0

Installation

$ npm install normalizer

JavaScript API

Below is an example of how to utilize normalizer. It normalizes array that has id attribute.

var normalizer = require('normalizer');

let data = { first:{ second:[{id:1, value: 1}], third:[{value:3}] } } normalizer(data);

Output: first:{ second:{ 1:{ value:1 } }, third:[{value:3}] }

License

MIT Akash Verma

Keywords