freeton-dens-lib
v1.0.1
Published
FreeTON Decentralized DNS resolve libriary
Downloads
7
Readme
FreeTON DeNs domain resolve lib
Based on Augual.TEAM DeNS
Installation and usage
npm install freeton-dens-lib
Usage in Node.js
const DeNsResolver = require('freeton-dens-lib');
let resolver = new DeNsResolver();
//Basic domain demo
console.log('Domain endpoint', await resolver.resolveAddress('qip'));
//Subdomain support
console.log('Domain data', await resolver.resolveDomainData('test/qip'));
Usage in browser
You can connect script directly with jsDelivr
<script src="https://cdn.jsdelivr.net/npm/freeton-dens-lib/index.min.js"></script>
or connect index.js file in any way. No other libraries needed
let resolver = new DeNsResolver();
//Basic domain demo
console.log('Domain endpoint', await resolver.resolveAddress('qip'));
//Subdomain support
console.log('Domain data', await resolver.resolveDomainData('test/qip'));