Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sefinek24/is-http-or-https
- Owner: sefinek24
- License: mit
- Created: 2022-05-07T02:47:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T16:06:06.000Z (10 months ago)
- Last Synced: 2024-10-09T13:19:25.875Z (27 days ago)
- Topics: http, https, npm, npm-package, npm-packages, or, protocol
- Language: JavaScript
- Homepage:
- Size: 161 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.