1.1.0 • Published 8 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-37
Usage
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'