Skip to content

A text converter that generate minimal abbreviations for every word following rules

Notifications You must be signed in to change notification settings

houhoucoop/go-abbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A text converter that generate minimal abbreviations for every word following rules

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published