1.0.0 • Published 9 years ago

json-key-converter v1.0.0

Weekly downloads
188
License
MIT
Repository
github
Last release
9 years ago

json-key-converter

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

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)