ninjapiratica-case-converter
v1.0.2
Published
Case Converter
Downloads
3
Maintainers
Readme
ninjapiratica-case-converter
Convert objects to a different case. camelCase, PascalCase, snake_case.
Installation
npm install ninjapiratica-case-converter --save
Usage
Typescript
import { convertCamelCase } from 'ninjapiratica-case-converter';
var obj = { Key: 'value', ... };
var newObj = convertToCamelCase(obj);
// newObj = { key: 'value', ... }
Javascript
var caseConverter = require('ninjapiratica-case-converter');
var obj = { Key: 'value', ... };
var newObj = caseConverter.convertToCamelCase(obj);
// newObj = { key: 'value', ... }