Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fokus

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fokus

A small tool to block websites using your hosts file.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Fokus

A node tool to help you focus.

Example usage

Add distractions

A small set of defaults come bundled with fokus. Here is the simplest usage just blocking default links.

sudo fokus

And you can also specify your own links from a file. The file need to export an array of links, like this

module.exports = [
 "www.facebook.com",
 "www.connoratherton.com"
]

And use the -u option followed by the file..

sudo fokus -u /path/to/file

Use a custom file and no defaults

sudo fokus -u /path/to/file --no-defaults

Stop distractions

To restore your /etc/hosts back to its original state run the following command. All traces of fokus will be gone.

sudo fokus --kill

You have to use sudo to modify /etc/hosts. I mainly use this myself, but if you want to use it check out the source beforehand so you understand what it does.

Note: You might have to clear your DNS cache.

sudo dscacheutil -flushcache

Keywords

FAQs

Package last updated on 08 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc