@adso-ts/sentence-case

Transforms any string into a `Sentence case` format

Usage no npm install needed!

<script type="module">
  import adsoTsSentenceCase from 'https://cdn.skypack.dev/@adso-ts/sentence-case';
</script>

README

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