Skip to content
Tiny library based on fetch to check sites for blocking
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.gitignore
LICENSE
README.md
package.json
rollup.config.js

README.md

Is blocked?

Tiny library based on fetch to check sites for blocking.

Usage

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

<script src="https://cdn.jsdelivr.net/npm/is-blocked@2.0.0/dist/is-blocked.min.js"></script>

Cases

You can’t perform that action at this time.