true-domain

0.1.0 • Public • Published

true-domain

Returns the active domain name of the current page excluding subdomains.

Installation

npm install --save true-domain

Usage

var trueDomain = require('true-domain');
 
console.log(trueDomain);

Idea source

Inspired by this blog post by Ross Scrivener.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i true-domain

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • zkochan