You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hugo Oliveira a3df380b57 versao 1 1 year ago
..
README.md versao 1 1 year ago
index.d.ts versao 1 1 year ago
index.js versao 1 1 year ago
package.json versao 1 1 year ago
test.js versao 1 1 year ago
tsconfig.json versao 1 1 year ago

README.md

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