Skip to content

A command-line interface to use the labeler of T.EX without the browser extension.

License

Notifications You must be signed in to change notification settings

t-ex-tools/labeler-cli

Repository files navigation

T.EX Labeler CLI

A command-line interface to use the labeler of T.EX without the browser extension. This tool integrates the module t-ex-tools/labeler-core.

Installation

Clone the repository and install the dependencies:

npm install

Examples

node src\index.js json example/ -o output/output.json
node src\index.js json example/input.json -b EasyList EasyPrivacy Disconnect.me -o output/output.json

Manual

node src/index.js help
Usage: json [options] [command]

A tool to automatically label data sets generated by T.EX using blocklists like EasyList, EasyPrivacy, and the like.

Options:
  -V, --version          output the version number
  -h, --help             display help for command

Commands:
  json [options] <file>  Label an exported JSON file consisting of HTTP requests.
  help [command]         display help for comman

node ./label.js help json  
Usage: label json [options] <file>

Label an exported JSON file consisting of HTTP requests.

Arguments:
  file                         path to JSON file

Options:
  -b, --blocklists <items...>  blocklists to use { "EasyList" | "EasyPrivacy" | "Disconnect.me" } (default: ["EasyPrivacy"])
  -o, --output <file>          name of the output file created in current working directory (default: "output.json")
  -h, --help                   display help for command