clone-to-case

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i clone-to-case

Weekly Downloads

46

Version

1.0.4

License

MIT

Last publish

Collaborators

  • prmph