1.1.0 • Published 7 years ago

go-abbr v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Go abbr

Build Status
A text converter that generate minimal abbreviations for every word following rules. DEMO

Rules

  • Turn any words within that string of length 4 or greater into an abbreviation.
  • The format includes first letter, then the number of removed characters, then the last letter.
  • Space or hyphen will split up a series of letters into two words.

Usage

npm i go-abbr --save
const goAbbr = require('go-abbr');

goAbbr('abb'); // abb
goAbbr('abbr'); // a2r
goAbbr('abbreviation'); // a10n
goAbbr('go-abbreviation'); // go-a10n
1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago