json-casing
Advanced tools
Weekly downloads
Readme
Here are a few lines of code taken from a unit test so you can see how to use this very simple JavaScript.
import { JSONCasing } from 'json-casing';
var camelObj = { prop1: "prop 1", obj1: { deepProp1: "dp1", deepProp2: "dp2" } };
var pascalObj = { Prop1: "prop 1", Obj1: { DeepProp1: "dp1", DeepProp2: "dp2" } };
var result = JSONCasing.toCamel(pascalObj);
expect(JSON.stringify(result)).toBe(JSON.stringify(camelObj));
FAQs
A simple library to convert JSON objects from one case (ie Camel) to another (ie Pascal).
The npm package json-casing receives a total of 212 weekly downloads. As such, json-casing popularity was classified as not popular.
We found that json-casing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.