https://github.com/nicksp/abbreviator
Transform sentences to abbreviations
https://github.com/nicksp/abbreviator
Last synced: 2 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 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T20:46:21.000Z (over 7 years ago)
- Last Synced: 2025-02-08T01:50:07.210Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- 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