@zambs/case-converter

1.0.3 • Public • Published

@zambs/case-converter

npm (scoped)


⚠️ Still under construction. ⚠️

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

Readme

Keywords

Package Sidebar

Install

npm i @zambs/case-converter

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

5.13 kB

Total Files

5

Last publish

Collaborators

  • pauloricardoz