root-extract.js
v1.0.1
Published
A simple function to extract the root domain from an url.
Downloads
2
Readme
rootExtract.js
Simple package to extract the root domain from an URL
Install
npm install root-extract
Usage
const root = require('root.extract')
let link = "www.example.co.uk"
let URL = root.rootDomain(link)
console.log(URL.rootDomain)
//Prints out 'example.co.uk'