Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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("something bad happened");
});
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 40 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.