my-platform
Provides OS platform specific functionality. currently supports OSX and Windows
This module builds on top of
API
This module exposes a unified api implemented differently for each OS
Service(config)
export an os specific Service class that exposes methods to install, uninstall, start and stop an operating system service
var Platform = var platform = osx: port: ... windows: port: ... var service = platform service
for service configuration options and full api, see node-windows#Service and node-mac#Overview
launch(app) and launchElevated(app)
launches a child process, this process is detached from the parent and thus will not prevent the parent from existing when the event loop as no more calls in it. On windows the elevated process is lauched using a special executable (see here) and on osx it is launched the same way as one would do "sudo ..."
var Platform = var platform = osx: port: ... windows: port: ... var child = platformchildstdout
createServer(connectionListener, startedListener)
Creates a server that will receive connections from a client created using connect() (See below)
var Platform = var platform = osx: port: ... windows: port: ... { connection} { console} platform // does not return a server object!
connect(connectListener)
connect to a server created by createServer()
var Platform = var platform = osx: port: ... windows: port: ... platform
emergency
in case of emergency, do npm install --force