Explorar o código

Expose `fuck.js` as a binary

This allows people to use the `jsfuck` command in their shell after
installing jsfuck globally via npm:

    npm install -g jsfuck
Mathias Bynens %!s(int64=11) %!d(string=hai) anos
pai
achega
ef5694852f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      fuck.js

+ 3 - 1
fuck.js

@@ -1,7 +1,9 @@
+#!/usr/bin/env node
+
 var lib = require("./jsfuck.js");
 
 if(process.argv.length !== 3) {
-	console.error("Usage: node fuck.js <js file>");
+	console.error("Usage: jsfuck <js file>");
 	return;
 }