1.1.2 • Published 1 year ago
@animalcase-js/core v1.1.2
@animalcase-js/core
Overview
A library to convert object's keys from came case to snake case and vice versa.
Install
@animalcase-js/core
can be used to manually convert keys.
npm i --save @animalcase-js/core
Usage
const caseconvert = require('@animalcase-js/core')
const myObject = {
propA: 1,
propB: 2,
myPropC: 'Hi'
}
caseconvert.convertToSnakeCase(myObject)
console.log(myObject)
should display
{
prop_a: 1,
prop_b: 2,
my_prop_c: 'Hi'
}