@toolkit-fe/string-case
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

@toolkit-fe/string-case

API

toDashedName()

import { toDashedName } from '@toolkit-fe/string-case'

console.log(toDashedName('Toolkit Frontend'))  // 'toolkit-frontend'

toUnderscoredName()

import { toUnderscoredName } from '@toolkit-fe/string-case'

console.log(toUnderscoredName('Toolkit Frontend'))  // 'toolkit_frontend'

toCamelCase()

import { toCamelCase } from '@toolkit-fe/string-case'

console.log(toCamelCase('Toolkit Frontend'))  // 'toolkitFrontend'

toClassName()

import { toClassName } from '@toolkit-fe/string-case'

console.log(toClassName('Toolkit Frontend'))  // 'ToolkitFrontend'

capitalize()

import { capitalize } from '@toolkit-fe/string-case'

console.log(capitalize('toolkit frontend'))  // 'Toolkit frontend'

capitalizeWords()

import { capitalizeWords } from '@toolkit-fe/string-case'

console.log(capitalizeWords('toolkit frontend'))  // 'Toolkit Frontend'

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.221latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.221
0.1.210
0.1.30
0.1.00

Package Sidebar

Install

npm i @toolkit-fe/string-case

Weekly Downloads

1

Version

0.1.22

License

ISC

Unpacked Size

7.63 kB

Total Files

8

Last publish

Collaborators

  • cellerchan