@animalcase-js/core
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@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'
}

Readme

Keywords

none

Package Sidebar

Install

npm i @animalcase-js/core

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

49.9 kB

Total Files

9

Last publish

Collaborators

  • gsuntres