mirror of
https://github.com/josephrocca/is-vpn.git
synced 2026-02-03 22:23:36 +02:00
Update isVpn import to version 0.0.3
Updated the import URL for isVpn to version 0.0.3.
This commit is contained in:
@@ -17,8 +17,8 @@ These all go into [`vpn-or-datacenter-ipv4-ranges.txt`](https://raw.githubuserco
|
||||
## Example usage:
|
||||
You can just use the lists in this repo directly, but if you're looking for an efficient JavaScript `isVpn`, then you can use this:
|
||||
```js
|
||||
import { isVpn } from "https://cdn.jsdelivr.net/gh/josephrocca/is-vpn@v0.0.2/mod.js";
|
||||
// let { isVpn } = await import("https://cdn.jsdelivr.net/gh/josephrocca/is-vpn@v0.0.2/mod.js");
|
||||
import { isVpn } from "https://cdn.jsdelivr.net/gh/josephrocca/is-vpn@v0.0.3/mod.js";
|
||||
// let { isVpn } = await import("https://cdn.jsdelivr.net/gh/josephrocca/is-vpn@v0.0.3/mod.js");
|
||||
|
||||
let ip = "123.123.123.123";
|
||||
if(isVpn(ip)) {
|
||||
|
||||
Reference in New Issue
Block a user