1.0.4 • Published 3 years ago

@adso-ts/sentence-case v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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