A Node wrapper for the Zab API.
$ npm install zab-client --save
const ZabClient = require('zab-client')
const zab = new ZabClient({ /* options */ })
-
token
- The API token to use for each request. Defaults to value in ~/.zab/config.json -
endpoint
- The full URL of the Zab API. Defaults to https://api.zab.io -
raw
- Whether to return the raw query instead of sending to API. All functions will return strings instead of promises when this is enabled. Defaults to false
You can override the default GraphQL query selections by chaining the .select()
method with any other function.
zab.select('firstName sites { name }').getAccount()
No authentication is required to call these methods.
- zab.createDeploy
- zab.activateDeploy
- zab.waitForFile