Skip to content

ninjapiratica/case-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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', ... }