1.0.4 • Published 8 years ago

clone-to-case v1.0.4

Weekly downloads
151
License
MIT
Repository
github
Last release
8 years ago

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"
}