Skip to content
Permalink
Browse files

Fix usage example (#13)

* Fix readme example

* 1.17.1

* add dhermes to codeowners
  • Loading branch information...
eugeneiiim authored and ftrimble committed Mar 15, 2019
1 parent 3de9d45 commit dc29f9c38bf46036adfaa99fef2425b6704b7985
Showing with 7 additions and 5 deletions.
  1. +2 −0 .github/CODEOWNERS
  2. +3 −3 README.md
  3. +1 −1 package-lock.json
  4. +1 −1 package.json
@@ -1 +1,3 @@
* @ftrimble @eugeneiiim

README.md @ftrimble @eugeneiiim @dhermes
@@ -18,7 +18,7 @@ $ npm install blend-promise-utils
## Usage Example

```js
const promiseUtils = require('promise-utils')
const promiseUtils = require('blend-promise-utils')
const { promises: fs } = require('fs')
const request = require('request-promise-native');
const moment = require('moment');
@@ -31,10 +31,10 @@ async function main() {
moment.duration(15, 'seconds').asMilliseconds(), // contents could change
);
const fileContents = await promiseUtils.filter(
const fileContents = await promiseUtils.map(
['file1', 'file2', 'file3'],
async fileName => {
const rawData = await fs.read(fileName);
const rawData = await fs.readFile(fileName);
return JSON.parse(rawData);
},
);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "blend-promise-utils",
"version": "1.17.0",
"version": "1.17.1",
"author": "Blend",
"license": "MIT",
"homepage": "https://blend.github.io/promise-utils",

0 comments on commit dc29f9c

Please sign in to comment.
You can’t perform that action at this time.