pouyapanahandeh / uli

simple npm package for url.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About

simple npm package for url.


Languages

Language:JavaScript 100.0%