27 lines
375 B
Markdown
27 lines
375 B
Markdown
|
# to-sentence-case
|
||
|
|
||
|
Convert a string to a sentence case.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
$ component install ianstormtaylor/to-sentence-case
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```js
|
||
|
var sentence = require('to-sentence-case');
|
||
|
|
||
|
sentence('the catcher in the rye');
|
||
|
// "The catcher in the rye"
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
### toSentenceCase(string)
|
||
|
|
||
|
Returns the sentence-case variant of a `string`.
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|