JSPM

abbreviator

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q19061F
  • License MIT

Generate abbreviations out of sentences

Package Exports

  • abbreviator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (abbreviator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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