UNPKG

namecomv4

Version:

A Node.js library wrapper for Name.com's V4 API, designed to simplify domain management tasks such as querying domain information, managing DNS records, and handling domain registration and transfer.

19 lines (13 loc) 551 B
import { NameComDomains } from "./index.js"; export class LocalBaseConfiguration{ static NAMECOM_API_PASS = '<your password token here>'; static NAMECOM_API_USER = 'yourusername-test'; static NAMECOM_API_URL = 'https://api.dev.name.com'; } const runTests = async () => { const domainClient = new NameComDomains(LocalBaseConfiguration.NAMECOM_API_USER, LocalBaseConfiguration.NAMECOM_API_PASS, LocalBaseConfiguration.NAMECOM_API_URL); domainClient.listDomains().then((domains: any) => { //console.log(domains); }); } runTests();