Permalink
Browse files

npm package created

  • Loading branch information...
olegp committed Jun 18, 2011
1 parent 1b94d5b commit 1afece366f3e6b3bf0dc2a03fd1be8abb4a5551c
Showing with 12 additions and 13 deletions.
  1. +8 −11 README.md
  2. +4 −2 package.json
View
@@ -26,25 +26,22 @@ If you don't already have them, [install Node](https://github.com/joyent/node/wi
curl http://npmjs.org/install.sh | sh
-Using `npm` install a global copy of `node-fibers` as root:
-
- sudo npm install -g fibers
-
-To install the latest version of `common-node`, clone the repository (an npm package will be made available once we have a stable release):
+Clone the repository (an npm package will be made available once we have a stable release):
git clone git://github.com/olegp/common-node.git
+
+To install `node-fibers` & `common-node` as global packages:
-Change to the package directory and run the "Hello World" example server:
+ sudo npm -g install fibers common-node
- cd common-node; node-fibers examples/hello.js
+Run the "Hello World" example:
-To test that it's working as expected, make an HTTP request from another prompt:
+ common-node common-node/examples/hello.js
- curl http://localhost:8080/
+To test that it's working, make an HTTP request from another prompt:
-To install `common-node` as a global package:
+ curl http://localhost:8080/
- sudo npm -g install .
### Examples
View
@@ -4,6 +4,8 @@
"version": "0.1.0",
"author": "Oleg Podsechin <oleg@ionsquare.com>",
"repository": "git://github.com/olegp/common-node",
- "main": "./lib/main.js",
- "engines": { "node": ">= 0.4.0" }
+ "main": "./lib/all.js",
+ "bin": { "common-node": "./bin/common-node" },
+ "engines": { "node": ">= 0.4.0" },
+ "dependencies-disabled" : { "fibers": ">=0.2.6" }
}

0 comments on commit 1afece3

Please sign in to comment.