Skip to content

pauloricardoz/case-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published