PropsToCamelCase
This library convert underscored object keys to camelCase. It's helpful when you get some props or response from third party like APIs or libraries when your ESlint configured to strict camelCase properties.
Examples
; let obj = ; console;// { userId: 1, userName: 'John Doe' }
let arr = ; console;// [{ userId: 1 }, { userId: 2 }]
// [{ user_id: 1, user_name: 'John Doe' }] ; // [{ userId: 1, userName: 'John Doe' }] const promise = ; console;// [{ userId: 1, userName: 'John Doe' }]
Scripts
npm start # development mode npm build # build the library npm test # run the tests