Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

json-casing

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Issues
File Explorer

Advanced tools

json-casing

A simple library to convert JSON objects from one case (ie Camel) to another (ie Pascal).

    1.2.10latest
    GitHub

Version published
Maintainers
1
Weekly downloads
213
decreased by-41.16%

Weekly downloads

Readme

Source

json-casing

Build Coverage Status npm version Package Size

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));

Keywords

FAQs

Last updated on 24 Nov 2020

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc