Skip to content

nicksp/abbreviator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abbreviator

Transform sentences to abbreviations, e.g. (talk to you later => ttyl).

Installation

$ npm install abbreviator

Usage

Get abbreviation as is

import abbreviator from 'abbreviator'

abbreviator('talk to you later')
  .then(console.log)
  .catch(console.error)

Capitalize abbreviation

import abbreviator from 'abbreviator'

abbreviator('talk to you later', true)
  .then(console.log)
  .catch(console.error)

License

MIT License © Nick S. Plekhanov

About

Transform sentences to abbreviations

Resources

License

Stars

Watchers

Forks

Packages

No packages published