vultr.js
v1.2.4
Published
A node.js vultr api wrapper.
Downloads
12
Readme
vultr.js
This is a simple and complete port of the vultr api in node.js.
Installation
npm install vultr.jsGet started
Authentication with an api key
vultr.setToken('your token here');Get all applications available
vultr.getApplications(function (err, data) {
if (err) throw err;
console.log(data);
});Get account info
vultr.getAccountInfo(function (err, data) {
if (err) throw err;
console.log(data);
});Get plans
vultr.getPlans(function(err, data) {
if (err) throw err;
console.log(data);
});Create new server named helloworld at Paris with 768 MB of ram and with Debian 8 jessie
vultr.createServer({DCID: 24, VPSPLANID: 29, OSID: 194, label: 'helloworld'}, function (err, data) {
if (err) throw err;
console.log(data);
});