JSPM

tiny-case

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3737634
  • Score
    100M100P100Q193675F
  • License MIT

Tiny Casing utils

Package Exports

  • tiny-case
  • tiny-case/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tiny-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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