@zambs/case-converter
Install
npm install @zambs/case-converter
Usage:
Implemented features:
-
keysToCamel: Allow converter object's keys to camelCase style. Also work in arrays with objects (recursivily)
const converter = require('@zambs/case-converter'); converter.keysToCamel({ snake_case: 1 }); // return {snakeCase: 1}
-
toCamel: Allow to convert strings to camelCase
const converter = require('@zambs/case-converter'); converter.toCamel('snake_case'); // return snakeCase