Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-bus-stop/xkcd-37
Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one word to the right.
https://github.com/goto-bus-stop/xkcd-37
Last synced: 27 days ago
JSON representation
Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one word to the right.
- Host: GitHub
- URL: https://github.com/goto-bus-stop/xkcd-37
- Owner: goto-bus-stop
- License: mit
- Created: 2015-09-09T10:48:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T12:05:09.000Z (over 7 years ago)
- Last Synced: 2024-10-05T16:01:38.516Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# XKCD 37
Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one
word to the right.[![My hobby: Whenever anyone calls something an [adjective]-ass [noun], I mentally move the hyphen one word to the right.](https://sslimgs.xkcd.com/comics/hyphen.jpg)](https://xkcd.com/37/)
## Installation
```
$ npm install xkcd-37
```## Usage
```js
var xkcd37 = require('xkcd-37')xkcd37('Man, that\'s a sweet-ass car')
//=> 'Man, that\'s a sweet ass-car'
```
### Advanced Usage
Use a double backslash to not parse that part of the string.
```js
var xkcd37 = require('xkcd-37')xkcd37('Man, that\'s a sweet\\-ass car')
//=> 'Man, that\'s a sweet-ass car'
```## License
[MIT](./LICENSE)