Skip to content

SVOIcom/freeton-dens-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'));

About

FreeTON Decentralized DNS resolve libriary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published