1.0.3 • Published 2 years ago

tiny-case v1.0.3

Weekly downloads
196
License
MIT
Repository
github
Last release
2 years ago

tiny-case

Extremely minimal string casing utilities that mimic most of lodash's casing behavior, e.g. numbers are considered seperate "words".

npm i tiny-case

Usage

import {
  camelCase,
  pascalCase,
  snakeCase,
  kebabCase,
  titleCase,
  sentenceCase,
  words,
  upperFirst,
} from 'tiny-case'

words('hi-there john') // ['hi', 'there', 'john']
words('   1ApplePlease  ') // ['1', 'Apple', 'Please']