1.1.0 • Published 8 years ago

xkcd-37 v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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.

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'

License

MIT