1.0.1 • Published 3 years ago
@niknah/porkbun-dns v1.0.1
Access to the Porkbun.com API using node or web browser.
const porkBunDNS = new PorkBunDNS("apikey", "secretapikey");
const id;
await porkBunDNS.create("YouDomain.com", "www", "A", "YourIPAddress").then((resp) => {
id=resp.id;
});
await porkBunDNS.edit("YouDomain.com", id, "www", "A", "YourNewIPAddress");
await porkBunDNS.delete("YouDomain.com", id);
const listOfRecords = await porkBunDNS.retrieve("YouDomain.com");
To run the test...
tap test/tests.js --test-arg=YourDomain.com --test-arg=YourApiKey --test-arg=YourSecretApiKey