is-http-or-https
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

🌍 » 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.

/is-http-or-https/

    Package Sidebar

    Install

    npm i is-http-or-https

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.38 kB

    Total Files

    7

    Last publish

    Collaborators

    • sefinek