sefinek24 / is-http-or-https

The package checks the string for a keyword related to http or https.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌍 » What is that?

EN: This useless packet checks a string for a keyword related to protocol http or https.
PL: Ten bezużyteczny moduł sprawdza string pod kątem słowa kluczowego związanego protokołem z http lub https.

🤔 » How to install?

$ npm install is-http-or-https

📝 » Examples

const checkUrl = require('is-http-or-https');

const url = 'https://example.com';

console.log(checkUrl.protocol(url)); // String => https
console.log(checkUrl.http(url));     // Boolean => false
console.log(checkUrl.https(url));    // Boolean => true

🤝 » Help

Open new Issue on Github.

About

The package checks the string for a keyword related to http or https.

License:MIT License


Languages

Language:JavaScript 100.0%