tiny-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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']

Readme

Keywords

none

Package Sidebar

Install

npm i tiny-case

Weekly Downloads

1,891,927

Version

1.0.3

License

MIT

Unpacked Size

5.7 kB

Total Files

6

Last publish

Collaborators

  • monastic.panic