Przeglądaj źródła

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 11 lat temu
rodzic
commit
ef5694852f
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      fuck.js

+ 3 - 1
fuck.js

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