Socket
Book a DemoInstallSign in
Socket

capacitor-vpn-detector

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-vpn-detector

Capacitor plugin to detect VPN connections on Android and iOS.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
14
75%
Maintainers
0
Weekly downloads
 
Created
Source

capacitor-vpn-detector

Capacitor plugin to detect VPN connections on Android and iOS.

Install

npm install capacitor-vpn-detector
npx cap sync

API

  • isVpnActive()

isVpnActive()

isVpnActive() => Promise<{ value: boolean; }>

Check if VPN is currently active on the device

Returns: Promise<{ value: boolean; }>

Usage

import { VpnDetector } from 'capacitor-vpn-detector';

const checkVpn = async () => {
  const result = await VpnDetector.isVpnActive();
  console.log('VPN is active:', result.value);
};

Keywords

capacitor

FAQs

Package last updated on 02 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts