1.1.0 • Published 9 years ago
xkcd-37 v1.1.0
XKCD 37
Whenever anyone calls something an adjective-ass noun, move the hyphen one word to the right.
Installation
$ npm install xkcd-37Usage
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.
var xkcd37 = require('xkcd-37')
xkcd37('Man, that\'s a sweet\\-ass car')
//=> 'Man, that\'s a sweet-ass car'![npm.io 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)