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

macos-focus-mode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-focus-mode

NodeJS library for managing focus mode on your MacOS

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

macos-focus-mode 🧘

NodeJS library and CLI for managing focus mode on your MacOS

npm i macos-focus-mode

Important: This library uses MacOS shortcuts functionality under the hood to maintain the focused mode. You should install the shortcut before the first usage. The library has corresponding API method, also you can install the shortcut via CLI

JS usage

Library exports the following methods:

  • enableFocusMode([DURATION_IN_MINUTES])
  • disableFocusMode()
  • installFocusModeShortcut()
  • isFocusModeShortcutInstalled()

We don't install the shortcut automatically to give you more control

CLI usage

  • macos-focus-mode install
  • macos-focus-mode enable
  • macos-focus-mode enable -d 1 - set duration
  • macos-focus-mode enable --silent - suppress output
  • macos-focus-mode disable
  • macos-focus-mode --help

Keywords

FAQs

Package last updated on 12 Dec 2021

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