Permalink
Browse files

add more examples

  • Loading branch information...
1 parent 2680dbd commit 68e3381cee573e7219c81f468cf5808b06061435 @tj tj committed Jul 4, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 Readme.md
View
@@ -7,7 +7,17 @@
$ npm install send
-## Example
+## Examples
+
+ Small:
+
+```js
+var app = http.createServer(function(req, res){
+ send(req.url).pipe(res);
+});
+```
+
+ Serving from a root directory with custom error-handling:
```js
var app = http.createServer(function(req, res){

0 comments on commit 68e3381

Please sign in to comment.