Преглед на файлове

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 години
родител
ревизия
ef5694852f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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;
 }