1.0.0 • Published 9 years ago
json-key-converter v1.0.0
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)
1.0.0
9 years ago