New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-key-converter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-key-converter

A tiny tool to convert JSON key from Camel to Underscore or from Underscore to Camel

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-38.46%
Maintainers
1
Weekly downloads
 
Created
Source

json-key-converter

A tiny tool to convert JSON key from Camel to Underscore or from Underscore to Camel.

NPM Version Downloads License

Usage

  var jsonKeyConverter = require('json-key-converter');

  var option = {
    camel: true
  }

  var newJson = jsonKeyConverter(json[, option]);

The conveter default convert json key to underscore standard. With setting option.camel = true, it will convert json key to camel case standard.

This is a tiny tool, it does not consider those special cases. (May perfect it in the future.)

License

MIT © Bo Li (solee.me)

Keywords

FAQs

Package last updated on 19 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc