1.0.0 • Published 8 years ago
titly v1.0.0
titly
Create a title from an input text.
Install
$ npm install titly --save
Usage
const titly = require('titly')
titly('do something', {
separator: ' ',
length: 8
})
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.
1.0.0
8 years ago