ulio
v1.1.0
Published
now you can work with URL in a way you like!
Downloads
38
Readme
ulio, simple package for URLs.
version one.
Installation
npm i ulio --save
How to use ulio:
const {domainName, domainWithProtocol} = require('ulio');
console.log(domainWithProtocol());
console.log(domainName());Optiones
Get URL:
getUrl()Divide URL base on "/":
slashDivider()Get domain protocol:
getProtocol()Get domain name with protocol:
domainName()Get domain with protocol:
domainWithProtocol()Get domain port:
sitePort()Get domain search query:
searchQuery()Get domain path name:
pathName()Get domain hash address:
hashAddress()Find specific string index in domain:
StringIndexFinder("writeStringHere")Check domain if it's encrypted or not:
isEncrypted()