Skip to content

Latest commit

 

History

History
executable file
·
22 lines (18 loc) · 348 Bytes

README.md

File metadata and controls

executable file
·
22 lines (18 loc) · 348 Bytes

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