Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
dropkit is a node.js module for Digital Ocean's V2 REST API.
npm install --save dropkit
DropKit uses BlueBird and returns promises.
var Dropkit = require("dropkit");
var v2 = new Dropkit("TOKEN");
v2.accounts().then(function(account) {
console.log(account);
}).error(function(error) {
console.log("httpStatusCode: " + error.statusCode);
console.log("response: " + error.res);
});
See the DigitalOcean's V2 Rest API for return definition
v2.accounts();
v2.account.keys(); //return all keys
v2.account.keys(keyIdOrFingerPrint); //retrieve key info
v2.account.keys({name: 'keyname',public_key: "ssh-rsa ..."}); //create a new key
v2.actions(); //list all actions
v2.actions({page=1,per_page=2}); //pass parameter on action list
v2.actions(actionId); //retrieve specific actionid
v2.domains(); //list all domains
v2.domains(domainName); //get domain info
v2.domain.create({name:'domain.com','ip_address':"127.0.0.1"});
v2.domain.delete("domain.com"); //delete
v2.records(domainName); //list all records for a given domain
v2.records(domainName,recordId);//return info for a particular record id
//create a new data, where recordData is https://developers.digitalocean.com/#create-a-new-domain-record
v2.record.create(domainName,recordData);
v2.record.update(domainName,recordId,"newrecordname");//update the name of a record
v2.record.delete(domainName,recordId); //delete the record id
v2.droplets(); //return list of droplets
v2.droplets(dropletId); //return info for droplet id
v2.droplet_upgrades(); //return droplet upgrades
//create a droplet where droplet is https://developers.digitalocean.com/#create-a-new-droplet
v2.droplet.create(droplet);
v2.droplet.kernels(dropletId);
v2.droplet.snapshots(dropletId);
v2.droplet.backups(dropletId);
v2.droplet.delete(dropletId);
//action here can be disable_backups,reboot,power_cycle,shutdown,power_off,power_on,restore,password_reset ..etc
//see https://developers.digitalocean.com/#droplet-actions
v2.droplet.action(dropletId,action);
v2.images(); //return all images
v2.images({type:"distribution"}); //list all distribution images
v2.images({type:"application"}); //list all application images
v2.images(id); //retrieve an image id
v2.image.update(id,"newName"); //update name of id
v2.image.delete(id); //as specified
v2.image.transfer(imageId,'nyc2'); //transfer image id to specified region
v2.image.action(imageId,actionId); //retrieve actionId
v2.regions();
v2.sizes();
FAQs
A minimalist approach to custom dropdowns, autocompletes, and more.
The npm package dropkit receives a total of 16 weekly downloads. As such, dropkit popularity was classified as not popular.
We found that dropkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.