Skip to content

gitfaf/node-abbreviate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-abbreviate

abbreviate input

Install via NPM

npm install --save node-abbreviate@v2

How to use

Version 2 example.

    const abbreviate = require('node-abbreviate').abbreviate;

    console.log(abbreviate.aString('an-tu-tu', /-/g)); // ATT

Check out [github|npm]/sample-node-abbreviate.

Versions

There are two versions of this package: v1 and v2 (branches: Ver1 and Ver2).

    # for Version 2; Recommended.
    npm install node-abbreviate@v2
    
    # for Version 1
    npm install node-abbreviate@v1

There are obvious differences among versions; I recommend v2.

License

MIT