Skip to content

ckross01/key-casing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#key-casing Change casing of an Object key

Install

npm i key-casing --save

Usage

var keyCase = require('key-casing');

var obj = { 'a': 3, 'b': 3 };

keyCase(obj);

//{ 'A': 3, 'B': 3 }

Use Case

Supports nested objects and flat objects to change casing of keys. Also, supports array detection in case the key is an array.

Currently only supports changing the first character to a capital letter.

License

MIT

About

Change casing of an Object key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published