Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/henrahmagix/semicolon-troll
- Owner: henrahmagix
- Created: 2015-12-03T02:25:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-08T17:03:34.000Z (about 9 years ago)
- Last Synced: 2025-01-10T20:01:25.840Z (24 days ago)
- Language: JavaScript
- Homepage: https://twitter.com/benbjohnson/status/533848879423578112
- Size: 76.2 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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.