snark-cli

Forward and unforward websites to a placeholder site

Usage no npm install needed!

<script type="module">
  import snarkCli from 'https://cdn.skypack.dev/snark-cli';
</script>

README

Snark

Companion CLI to snark.qnzl.co, a site as a placeholder for blocked sites. Snark helps you realize that you are going to sites you've deemed wasteful and suggest activities away from the computer, in a somewhat snarky way.

Pre-requisites

If you have node already installed:

Note: snark needs sudo permissions to edit the hosts file which is why sudo is needed when installing the CLI

npm install
sudo npm link

If you not:

./bin/install

This will link packaged binaries to the required folder so it can be ran like any other command

Usage

snark -h

Note: Currently snark only sets records to 140.82.3.56

To block site:

snark block <site>

To unblock site:

snark unblock <site>

To show all sites blocked:

snark list