Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
fixed markdown syntax in example
Browse files Browse the repository at this point in the history
  • Loading branch information
olegp committed Aug 29, 2011
1 parent e81f4b7 commit fa856a4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,23 +102,23 @@ To use the package in your existing app, you will need to:
* run your app with `node` instead of `common-node`
* change the way in which you require modules from `var io = require('io');` to `var io = require('common-node').io;`

For example the following modified version of the `http.js` can be run directly via `node http.js`
For example the following modified version of `examples/http.js` can be run directly via `node http.js`

var HttpClient = require('httpclient').HttpClient;

exports.app = function(request) {
return {
status: 200,
headers: {},
body: new HttpClient({
url: 'http://google.com'
}).finish().body
};
};

if(require.main == module) {
require('common-node').run(exports);
}
var HttpClient = require('httpclient').HttpClient;
exports.app = function(request) {
return {
status: 200,
headers: {},
body: new HttpClient({
url: 'http://google.com'
}).finish().body
};
};
if(require.main == module) {
require('common-node').run(exports);
}

### Contributing

Expand Down

0 comments on commit fa856a4

Please sign in to comment.