https://github.com/gitfaf/node-abbreviate
abbreviate input
https://github.com/gitfaf/node-abbreviate
Last synced: 9 months ago
JSON representation
abbreviate input
- Host: GitHub
- URL: https://github.com/gitfaf/node-abbreviate
- Owner: gitfaf
- License: mit
- Created: 2017-05-19T18:29:57.000Z (over 8 years ago)
- Default Branch: Ver2
- Last Pushed: 2017-08-16T06:17:25.000Z (over 8 years ago)
- Last Synced: 2025-04-28T09:04:49.084Z (9 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# 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