Skip to content

Commit

Permalink
update verb
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Feb 17, 2016
1 parent 0ef4dc1 commit 0c6c9b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ const {%= varname %} = require('{%= name %}')

{%= apidocs('index.js') %}

### Usage as wrapper
> If you pass [simple-get][simple-get] to it or any request library that
have `.concat` method, it just returns it and adds `.requestAll` method.

**Example**

```js
const simpleGet = require('request-all')(require('simple-get'))

simpleGet.requestAll('http://httpbin.org/ip', {json: false}, (err, buf) => {
if (err) return console.error(err)
console.log(buf.toString()) // => '{"origin": "33.125.89.244"}'
})
```

{% if (verb.related && verb.related.list && verb.related.list.length) { %}
## Related
{%= related(verb.related.list, {words: 11}) %}
Expand Down

0 comments on commit 0c6c9b3

Please sign in to comment.