Skip to content

Commit

Permalink
Expand on example
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfosterelli committed Mar 14, 2017
1 parent 31c69e5 commit c2cc5b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ You can also use it as a library:
```javascript
const count = require('contributor-count')

const name = 'express'
const version = 'latest'
const target = { name, version }

count(target)
.then(count => console.log('The count is', count))
.catch(err => console.error('Failed to get count', err))
Expand Down

0 comments on commit c2cc5b7

Please sign in to comment.