v_masaye-security-package
v1.0.0
Published
A package for IP detection, device fingerprinting, bot detection, cookie duplication checking, country verification, and VPN detection.
Downloads
9
Maintainers
Readme
My Security Package
Installation
npm install my-security-package
import { getIP, getDeviceFingerprint, detectBot, checkCookieDuplicate, verifyCountry, detectVPN } from 'my-security-package';
// Get IP
getIP().then(ip => console.log(ip));
// Get Device Fingerprint
console.log(getDeviceFingerprint());
// Detect Bot
console.log(detectBot(navigator.userAgent));
// Check Cookie Duplicate
console.log(checkCookieDuplicate(document.cookie));
// Verify Country
verifyCountry('India').then(isInCountry => console.log(isInCountry));
// Detect VPN
detectVPN().then(isUsingVPN => console.log(isUsingVPN));