Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alik0211/is-blocked
Tiny library based on fetch to check sites for blocking
https://github.com/alik0211/is-blocked
Last synced: 7 days ago
JSON representation
Tiny library based on fetch to check sites for blocking
- Host: GitHub
- URL: https://github.com/alik0211/is-blocked
- Owner: alik0211
- License: mit
- Created: 2019-02-14T06:18:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T21:59:44.000Z (4 months ago)
- Last Synced: 2024-12-09T16:59:43.751Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/is-blocked
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Is blocked?
Tiny library based on fetch to check sites for blocking.
## Usage
```js
isBlocked('https://t.me').then(() => {
// Do something if the site is blocked
});
```## Install
### Module
Using npm:
```
npm i is-blocked
```Or yarn:
```
yarn add is-blocked
```### CDN
```html
```
## Cases
- [Replace blocked Telegram links](https://alik0211.com/blog/replace-blocked-telegram-links/)