@adso-ts/sentence-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Sentence case

Transforms a string

  • 'myString'
  • 'MyString'
  • 'my_string'
  • 'MY STRING'
  • 'my string'
  • 'My string'
  • 'My String'

Into a Sentence case (capitalise first letter)

Import

import { sentenceCase } from '@adso-ts/sentence-case';

How to use

const sentenceCased = sentenceCase(string);  // result: My string

Package Sidebar

Install

npm i @adso-ts/sentence-case

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

4.67 kB

Total Files

7

Last publish

Collaborators

  • asokolowski