titly
Create a title from an input text.
Install
$ npm install titly --save
Usage
const titly =
API
titly(str, [options])
input
Required
Type: string
The input text to extract the title.
options
separator
Type: string
Default:
Split the input text based in the separator.
length
Type: number
Default: 8
Count number of elements based on the separator for truncate the title.
License
MIT © Kiko Beats.