1.0.2 • Published 5 years ago

data-normalizer v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

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