Explorar el 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 hace 11 años
padre
commit
ef5694852f
Se han modificado 1 ficheros con 3 adiciones y 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;
 }