Skip to content
Browse files

it works

  • Loading branch information...
1 parent d6dca79 commit 5d81edd3d2d8c342119937ee3b2ce3e237596c76 @pkrumins pkrumins committed Apr 29, 2012
Showing with 32 additions and 0 deletions.
  1. +4 −0 index.js
  2. +28 −0 package.json
View
4 index.js
@@ -0,0 +1,4 @@
+var data = "module.exports = function () { console.log(\"var data = \\\"%s\\\"\\n%s\", data.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\"), data.replace(/{/, \"{\\n \").replace(/}$/, \"\\n}\")); }"
+module.exports = function () {
+ console.log("var data = \"%s\"\n%s", data.replace(/\\/g, "\\\\").replace(/"/g, "\\\""), data.replace(/{/, "{\n ").replace(/}$/, "\n}"));
+}
View
28 package.json
@@ -0,0 +1,28 @@
+{
+ "name": "quine",
+ "version": "1.0.0",
+ "main": "index.js",
+ "description": "A node.js module that exports a function that prints itself",
+ "keywords": [
+ "quine",
+ "fixed point",
+ "meta"
+ ],
+ "author": {
+ "name": "Peteris Krumins",
+ "email": "peteris.krumins@gmail.com",
+ "web": "http://www.catonmat.net",
+ "twitter": "pkrumins"
+ },
+ "license": {
+ "type": "MIT"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/pkrumins/node-quine.git"
+ },
+ "engines": {
+ "node": ">=0.2.0"
+ }
+}
+

0 comments on commit 5d81edd

Please sign in to comment.
Something went wrong with that request. Please try again.