𝚫 now API
Node.js module to interact with the official 𝚫 now API.
You need to provide your API token, which you can obtain here.
It is possible to pass it as a parameter or with the NOW_TOKEN
environment variable.
When no token is given, it will use the one contained in your .now.json
file.
npm install --save now-api
Example
var Now = require('now-api');
var now = Now('YOUR TOKEN');
now.getDeployments().then((deployments) => {
console.log(deployments);
}).catch((err) => {
console.error(err);
});
now.getDeployments(function(err, deployments) {
if (err) throw err;
console.log(deployments);
});
API Reference
{{#class name="Now"}}
{{>body}}
{{>member-index~}}
{{>members~}}
{{/class}}