Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Add promise API to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 7, 2019
1 parent 9a290ec commit 4eed760
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -29,6 +29,9 @@ rpt('/path/to/pkg/root', function (node, kidName) {
// error: <if set, the error we got loading/parsing the package.json>
// }
})

// or promise-style
rpt('/path/to/pkg/root').then(data => { ... })
```

That's it. It doesn't figure out if dependencies are met, it doesn't
Expand Down

0 comments on commit 4eed760

Please sign in to comment.