Wajez Transform
Transforming data to object made easy.
Installation
npm i wajez-transform --save
Usage
const transform = const numbers = 1 -5 2 7 -1 0 -4 //=> {// positive: [1, 2, 7, 0],// negative: [-5, -1, 0, -4]// } const users = firstName: 'Amine' lastName: 'Ben hammou' birthDay: '1990-05-05' job: 'Developer' links: github: 'https://github.com/webNeat' twitter: 'https://twitter.com/WebNeat' //,... const format = // a function which can be applied to transform mutiple objects users //=> [// {// name: 'Amine Ben hammou',// profession: 'Developer',// age: 27,// github: 'https://github.com/webNeat'// }// , ...// ]
Contribution
Feedback and Pull Requests are welcome!