Skip to content

Commit

Permalink
Example additions
Browse files Browse the repository at this point in the history
  • Loading branch information
opensoars committed Apr 18, 2016
1 parent 3a3561e commit 2cbc3be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,28 @@ Requires made easy.

ES 2015
```js
// Using an object
var reqs = require('reqqer')({
https: 'https',
http: 'http'
});

// Using an array
var reqs = require('reqqer')(['https', 'http']);

var https = reqs.https,
http = reqs.http;
```

ES 2016
```js
// Using an object
const {https, http} = require('reqqer')({
https: 'https',
http: 'http'
});

// Using an array
const {https, http} = require('reqqer')(['https', 'http']);
```

Expand Down

0 comments on commit 2cbc3be

Please sign in to comment.