Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Kikobeats/titly

Repository files navigation

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.

About

Create a title from an input text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published