@zambs/case-converter
v1.0.3
Published
Convert strings and object keys in a different case type
Downloads
2
Readme
@zambs/case-converter
:warning: Still under construction. :warning:
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