clone-to-case

Clone javascript object with string property keys converted to different case

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
clone-to-case
1.0.47 years ago7 years agoMinified + gzip package size for clone-to-case in KB

Readme

Clone-To-Case.js
Clone javascript object with string property keys converted to different case

Example

var clone = require("./dist/clone.js");
var stringifyX = require("stringify-x");

console.log(stringifyX(clone({
    a_b_c: "abc",
    XYZ: "xyz"
}, "camel"), true));

Output:
{
  "aBC": "abc",
  "xyz": "xyz"
}