tiny-case

Tiny Casing utils

MIT 4 个版本
安装
npm install tiny-case
yarn add tiny-case
pnpm add tiny-case
bun add tiny-case
README

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']
版本列表
1.0.3 2022-03-03
1.0.2 2020-12-18
1.0.1 2020-12-17
1.0.0 2020-12-17