do-not-disturb

1.2.0 • Public • Published

do-not-disturb Build Status

Toggle do not disturb mode for OS X

CLI

$ npm i -g do-not-disturb
do-not-disturb --help
 
  Usage
    do-not-disturb

Note: If you haven't already, you will need to give your Terminal.app the ability to control your computer. In System Preferences > Security & Privacy:

h4ixljc8p5u7wpaidv7ynwrbvlifzonor7gxg-fdn7e

API

$ npm install --save do-not-disturb
const doNotDisturb = require('do-not-disturb');
 
doNotDisturb.on();
doNotDisturb.off();
 
// Or check the state of do not disturb mode
doNotDisturb
  .status()
  .then(console.log);

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.

Package Sidebar

Install

npm i do-not-disturb

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

5.96 kB

Total Files

5

Last publish

Collaborators

  • johno