Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 861 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 861 Bytes

IsTorExit

Check if an IP is a Tor exit node.

npm version CircleCI

Usage

CLI

$ npm install -g istorexit
$ istorexit --help
NAME
  istorexit - Check if an IP is a Tor exit node

SYNOPSIS
  istorexit [options] [IP...]

OPTIONS
  -h, --help
      Print this message and exit
$ istorexit 1.1.1.1 1.2.1.1 1.3.1.1 1.4.1.1 1.5.1.1 104.200.20.46
1.1.1.1 false
1.2.1.1 false
1.3.1.1 false
1.4.1.1 false
1.5.1.1 false
104.200.20.46 true

NodeJs

const IsTorExit = require("istorexit");
IsTorExit("104.200.20.46").then(console.log); // true
IsTorExit("1.1.1.1").then(console.log); // false