https://github.com/nicksp/abbreviator
Transform sentences to abbreviations
https://github.com/nicksp/abbreviator
Last synced: 3 months ago
JSON representation
Transform sentences to abbreviations
- Host: GitHub
- URL: https://github.com/nicksp/abbreviator
- Owner: nicksp
- License: mit
- Created: 2017-11-19T16:31:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T20:46:21.000Z (over 8 years ago)
- Last Synced: 2026-03-28T22:41:55.036Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Abbreviator
Transform sentences to abbreviations, e.g. (`talk to you later` => `ttyl`).
## Installation
```sh
$ npm install abbreviator
```
## Usage
### Get abbreviation as is
```js
import abbreviator from 'abbreviator'
abbreviator('talk to you later')
.then(console.log)
.catch(console.error)
```
### Capitalize abbreviation
```js
import abbreviator from 'abbreviator'
abbreviator('talk to you later', true)
.then(console.log)
.catch(console.error)
```
## License
[MIT License](https://nicksp.mit-license.org/) © Nick S. Plekhanov