浏览代码

Merge pull request #10 from mathiasbynens/add-package.json

Publish as an npm package
Martin Kleppe 11 年之前
父节点
当前提交
982fa2d436
共有 2 个文件被更改,包括 31 次插入1 次删除
  1. 3 1
      fuck.js
  2. 28 0
      package.json

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

+ 28 - 0
package.json

@@ -0,0 +1,28 @@
+{
+  "name": "jsfuck",
+  "version": "0.1.0",
+  "description": "Write any JavaScript with just 6 characters: []()!+",
+  "main": "jsfuck.js",
+  "bin": "fuck.js",
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/aemkei/jsfuck.git"
+  },
+  "keywords": [
+    "esoteric",
+    "obfuscation"
+  ],
+  "author": {
+    "name": "Martin Kleppe",
+    "url": "https://github.com/aemkei"
+  },
+  "licenses": [
+    {
+      "type": "WTFPL",
+      "url": "https://raw.github.com/aemkei/jsfuck/master/LICENSE.txt"
+    }
+  ],
+  "bugs": {
+    "url": "https://github.com/aemkei/jsfuck/issues"
+  }
+}