@gve/core
v0.4.4
Published
Helpful functions to reduce parsing and errors
Downloads
6
Readme
Core
Use helpful functions to reduce parsing and errors.
Installation
Install with npm.
npm i @gve/core
Usage
const { getDomain } = require("@gve/core");
const malformedUrl = "://www.cisco.com/c/en/us/products/datasheet.html";
const domain = getDomain(malformedUrl);
console.log(domain);
Prints cisco.com
.