Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
A node client for the DNSimple API v2.
DNSimple provides DNS hosting and domain registration that is simple and friendly. We provide a full API and an easy-to-use web interface so you can get your domain registered and set up with a minimal amount of effort.
The dnsimple-node package requires node 6.0.0 or higher.
You must also have an activated DNSimple account to access the DNSimple API.
You can install this package directly from the github repo with npm install dnsimple/dnsimple-node
.
Alternatively, install the latest stable version from NPM with npm install dnsimple
.
This library is a nodejs client you can use to interact with the DNSimple API v2.
The DNSimple nodejs library uses promises exclusively, thus all client calls that call out to the DNSimple API will return a Promise. The examples below demonstrate basic usage.
var client = require('dnsimple')({
accessToken: process.env.TOKEN,
});
// Fetch your details
client.identity.whoami().then(function(response) {
console.log(response.data);
}, function(error) {
console.log(error);
});
// List your domains
var accountId = '1010';
client.domains.listDomains(accountId).then(function(response) {
console.log(response.data);
}, function(error) {
console.log(error);
});
client.domains.listDomains(accountId, {page: 3}).then(function(response) {
console.log(response.data);
}, function(error) {
console.log(error);
});
// Create a domain
client.domains.createDomain(accountId, "example.com").then(function(response) {
console.log(response.data);
}, function(error) {
console.log(error);
});
// Get a domain
client.domains.getDomain(accountId, "example.com").then(function(response) {
console.log(response.data);
}, function(error) {
console.log(error);
});
Take a look at https://github.com/dnsimple/hello-domains-node for an example app that authorizes via OAuth and displays your domain list.
If you would like to test in the DNSimple sandbox environment then pass the 'baseUrl' option when creating the client:
var client = require('dnsimple')({
baseUrl: 'https://api.sandbox.dnsimple.com',
accessToken: process.env.TOKEN,
});
You will need to ensure you are using an access token created in the sandbox environment. Production tokens will not work in the sandbox environment.
FAQs
A Node.JS client for the DNSimple API.
The npm package dnsimple receives a total of 1,330 weekly downloads. As such, dnsimple popularity was classified as popular.
We found that dnsimple demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.