Skip to content

henrahmagix/semicolon-troll

Repository files navigation

semicolon-troll

Inspired by this tweet:

Tweet by Ben Johnson @benbjohnson: "Replace a semicolon (;) with a greek question mark (;) in your friend's JavaScript and watch them pull their hair out over the syntax error."

The install/uninstall scripts were copied wholesale from observing/[email protected]

Usage

  • npm install semicolon-troll
  • That's it!

When enough is enough

  • npm uninstall semicolon-troll will remove the pre-commit hook.

What does it do

  • Installs a Git pre-commit hook that will replace all semicolons in staged JavaScript files with greek question marks.
  • Stages those changes for committing.

Terms and conditions

By installing this package you hereby waive all responsibility from the author and acknowledge that the author will not reside for eternity in a firey furnace, in this life, all previous lives, and all future lives, for all time.