titly

1.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i titly

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kikobeats