Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)