Skip to content

Commit

Permalink
Wrap await example in a function because top-level await doesn't exis…
Browse files Browse the repository at this point in the history
…t yet
  • Loading branch information
malept committed Jun 20, 2019
1 parent ae73870 commit 481937a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/api.md
Expand Up @@ -4,7 +4,11 @@ Short example:

```javascript
const packager = require('electron-packager')
const appPaths = await packager(options)

async function bundleElectronApp(options) {
const appPaths = await packager(options)
console.log(`Electron app bundles created:\n${appPaths.join("\n")}`)
}
```

`appPaths` is described in the [return value](#return-value) section.
Expand Down

0 comments on commit 481937a

Please sign in to comment.