1.0.3 • Published 9 months ago

@bestcodes/detecttor v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

DetectTor

DetectTor is a simple npm library to detect if a request originated from Tor Browser. DetectTor uses Tor's exit node list to determine if the request is a Tor exit node.

Usage

Install the package:

npm install @bestcodes/detecttor

Import and use a function:

import isIpTor, { amIUsingTor } from "@bestcodes/detecttor";

isIpTor("89.0.142.86")
  .then((result) => {
    console.log(result);
  })
  .catch((error) => {
    console.error(error);
  });

amIUsingTor()
  .then((result) => {
    console.log(result);
  })
  .catch((error) => {
    console.error(error);
  });

License

MIT License

1.0.3

9 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago