Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/henrahmagix/semicolon-troll

Don't be too mean!
https://github.com/henrahmagix/semicolon-troll

Last synced: 19 days ago
JSON representation

Don't be too mean!

Awesome Lists containing this project

README

        

# semicolon-troll

Inspired by [this tweet](https://twitter.com/benbjohnson/status/533848879423578112):

![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."](benjohnson-tweet.png)

The install/uninstall scripts were copied wholesale from [observing/[email protected]](https://github.com/observing/pre-commit/tree/3f83f7298928186335a34424c02088d1c6e358b5)

## 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.