/selfcontrol.ts

CLI app to block websites that you don't want to access

Primary LanguageTypeScript

👽 selfcontrol.ts

A small CLI util to block and unblock websites, to help you get on with and focus on work.

Pre-requisites

  • Node.js 20

Installation

  1. Clone the repo
  2. Install the dependencies npm i
  3. Link the binary npm link
  4. Check that this has been installed with which selfcontrol

Usage

asciicast

Usage: selfcontrol [options]

Options:
  -V, --version        output the version number
  -l, --list           list blocked sites
  -a, --add <site>     add site to blocked list
  -d, --delete <site>  delete site from blocked list
  -s, --start          start blocking sites
  -x, --stop           stop blocking sites
  -c, --clear          clear blocked sites
  -h, --help           display help for command