New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

root-domain

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

root-domain

returns the root domain of any domain you give it

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

root-domain

simply returns the root-domain of any url or host that you give it

var parse = require('root-domain');

console.log(parse('mail.google.com'));
// 'google.com'

All the hard work is done by parse-domain.

Keywords

root-domain

FAQs

Package last updated on 12 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts