1.1.2 • Published 1 year ago

@animalcase-js/core v1.1.2

Weekly downloads
12
License
MIT
Repository
-
Last release
1 year ago

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

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago