domain-verifier

0.1.0 • Public • Published

Domain Verifier

Verify the ownership of a domain name.

Installation

$ npm install domain-verifier

Usage

const verifier = require('domain-verifier');
 
// Only DNS TXT domain verification is supported atm.
verifier.dnstxt('example.com', 'random identification token', (err, verified) => {
  if (err) throw err;
 
  console.log(`result: ${verified}`);
});

TODO

Support other verification methods. Some options:

  • Download file on domain at specific path with specific contents
  • Meta tag?
  • ?

Readme

Keywords

Package Sidebar

Install

npm i domain-verifier

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • coen-hyde