Skip to content

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

License

Notifications You must be signed in to change notification settings

zkochan/true-domain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 © Zoltan Kochan

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published