Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sefinek24/is-http-or-https

The package checks the string for a keyword related to http or https.
https://github.com/sefinek24/is-http-or-https

http https npm npm-package npm-packages or protocol

Last synced: 16 days ago
JSON representation

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

Awesome Lists containing this project

README

        

## 🌍 » 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
```js
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](https://github.com/sefinek24/is-http-or-https/issues/new/choose) on Github.