@cisco/core
v0.5.5
Published
Helpful functions to reduce parsing and errors
Downloads
13
Keywords
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
.