import NamecheapClient from '@nexys/namecheap';
const username = "xx";
const apiKey = "xx";
const clientIp = "xx";
const c = new NamecheapClient({ username, apiKey, clientIp });
// available methods
c.getHosts()
c.setHosts()
c.addHosts()
c.deleteHosts()
https://www.namecheap.com/support/api/methods/domains-dns/set-hosts/