Skip to content

abdalem/caseize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caseize

Deeply case any object/collection's keys


Caseize allow you to transform deeply any object or collection by casing keys. At this time only snakecase and camelcase are compatible. But feel free to add any case type you want and PR them to be available to the community.

List of features

  • Casing to snakecase
  • Casing to camelcase

Code Demo

import caseize from 'caseize'

const inputData = {
  snake_case_key: 'value',
  mixed_caseKey: 'value',
}

const outputData = caseize(inputData, 'camelcase')

// outputData === {
//   snakeCaseKey: 'value',
//   mixedCaseKey: 'value,
// }

Download & Installation

$ npm i caseize

Contributing

Keep it simple. Keep it minimal. Don't put every single feature just because you can.

Authors or Acknowledgments

  • abdalem

License

This project is licensed under the ISC License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published