浏览代码

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;
 }