Skip to content

Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one word to the right.

License

Notifications You must be signed in to change notification settings

goto-bus-stop/xkcd-37

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Whenever anyone calls something an [adjective]-ass [noun], move the hyphen one word to the right.

Resources

License

Stars

Watchers

Forks

Packages

No packages published