JSPM

crash-override

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q41154F
  • License ISC

Control system functions (restart/shutdown/volume/screensaver etc)

Package Exports

  • crash-override

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crash-override) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

crash-override

Control system services such as audio volumne, start/sleep/shutdown and screensaver programmatically.

OS X only for now!

Installation

Get it:

$ npm install --save crash-override

Require it:

var crash-override = require('crash-override');

API

(Callback is optional for all methods)

co.restart([cb])

Restart the computer.

co.shutdown([cb])

Shutdown the computer.

co.sleep([cb])

Enter sleep mode.

co.mute([cb])

Mute audio.

co.unmute([cb])

Unmute audio.

co.setVolume(val, [cb])

Set the system volume to val (0..1).

co.startScreensaver([cb])

Start the system screensaver.

co.stopScreensaver([cb])

Stop the system screensaver.

© 2015 Jason Frame [ @jaz303 / jason@onehackoranother.com ]

Released under the ISC license.