1.0.0 • Published 8 years ago

titly v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

titly

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status Donate

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.