npm.io
0.1.0 • Published 8 years ago

@nicholasmole/change-case

Licence
ISC
Version
0.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Change Case

Change string to sentence or title case.

Usage

Use Cases

Sentence Case

Title Case

SentenceCase

  import {sCase} from '@nicholasmole/change-case';
  sCase('foo bar');

  // outpus: 'Foo bar'
TitleCase
  import {tCase} from '@nicholasmole/change-case';
  tCase('foo bar');

  // outpus: 'Foo Bar'

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords