1.0.2 • Published 5 years ago
data-normalizer v1.0.2
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