Permalink
Browse files

example in readme

  • Loading branch information...
jfhbrook committed Sep 24, 2012
1 parent ce7e798 commit 2f4d852036f904dbb8c6da6f696180f1511e779e
Showing with 24 additions and 76 deletions.
  1. +24 −0 README.md
  2. +0 −76 test.txt
View
@@ -4,6 +4,7 @@ A github post-commit service hook handler
## example:
`example.js`
```js
var hook = require('hubhook')();
@@ -27,6 +28,29 @@ hook.on('payload', function (payload) {
});
```
#### output:
(example with a random repo of mine)
```
$ node example.js
{ pusher: { name: 'none' },
repository:
{ name: 'my-little-proxy',
size: 168,
has_wiki: true,
created_at: '2012-09-16T12:08:06-07:00',
private: false,
watchers: 6,
url: 'https://github.com/jesusabdullah/my-little-proxy',
fork: false,
language: 'JavaScript',
pushed_at: '2012-09-23T02:04:52-07:00',
id: 5832190,
***snip***
```
## API:
### `var HubHook = require('hubhook')`
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 2f4d852

Please sign in to comment.