nachos-api
API to interact with nachos core
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
Have a problem? Come chat with us!
Installation
$ [sudo] npm install nachos-api --save
Usage
Initialization
var nachosApi = ;
Custom events
on(packageName, callback)
Register custom events
nachosApi;
emit(packageName, data)
Emit custom event
nachosApi; // -> emits custom.your-package with the sent data
removeListener(packageName, callback)
Remove event listener
nachosApi; // cb -> The callback used on registration
Settings
Example
nachosApi;
See settings-file documentation to see list of available functions
Server
Examples
nachosApiserverusers;
See server-api documentation to see list of available functions
System
open(data)
nachosApisystem;
Run Tests
$ npm test