convert between camelCase, PascalCase, snake_case, and kebab-case.
be in a nodejs project.
npm i --save-dev @magic/cases
import cases from '@magic/cases'
const string = 'some-case-string'
const camelized = cases.camel('some-case-string') // someCaseString
const snaked = cases.snake('some-case-string') // some_case_string
const pascaled = cases.pascal('some-case-string') // SomeCaseString
const kebabed = cases.kebab('some-case-string') // some-case-string
console.log({ camelized, snaked, pascaled, kebabed })
first commit, four case types work.
add kebabCaps and snakeCaps for KEBAB-CAPS and SNAKE_CAPS
bump required node version to 14.2.0
bump required node version to 14.15.4
FIX: kebabcase handles camelCase strings that end with an uppercase character correctly (this fixes overflowX in @magic/css)
update dependencies
update dev dependencies
update dependencies
update development dependencies
...