From 4eed760707c2e8f4bb5e4b111e29b0e59aca4273 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 6 Jun 2019 21:01:15 -0700 Subject: [PATCH] Add promise API to readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c8edffd..aa0cc93 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ rpt('/path/to/pkg/root', function (node, kidName) { // error: // } }) + +// 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