New PhoneGap Build NodeJS module: pgb-api

brett
PhoneGap
Published in
1 min readMar 26, 2018

We’ve released a new npm module to assist in integrating PhoneGap Build with any nodeJS scripts or workflows that need easy access to the PhoneGap Build REST api. It supports promises and supports nodeJS ≥ 4.0.0

https://npmjs.org/pgb-api

To install in your projects:

> yarn add pgb-apior> npm install pgb-api --save

Here is a snippet to print out your apps to the console:

const pgb = require('pgb-api')()pgb.addAuth('your-api-token')
pgb.getApps()
.then(console.log)
.catch(console.error)

A cheatsheet with all functions is here.

Follow me on twitter @brettrudd

--

--