Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zkochan/true-domain
Returns the active domain name of the current page excluding subdomains.
https://github.com/zkochan/true-domain
Last synced: 10 days ago
JSON representation
Returns the active domain name of the current page excluding subdomains.
- Host: GitHub
- URL: https://github.com/zkochan/true-domain
- Owner: zkochan
- License: mit
- Created: 2015-07-14T18:25:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T22:07:02.000Z (almost 9 years ago)
- Last Synced: 2024-11-25T08:44:06.497Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# true-domain
Returns the active domain name of the current page excluding subdomains.
## Installation
```
npm install --save true-domain
```## Usage
```js
var trueDomain = require('true-domain');console.log(trueDomain);
```## Idea source
Inspired by [this][blog-post] blog post by Ross Scrivener.
## License
MIT © [Zoltan Kochan](https://www.kochan.io)
[blog-post]: http://rossscrivener.co.uk/blog/javascript-get-domain-exclude-subdomain