Package Exports
- @cliqz-oss/node-firefox-connect
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 (@cliqz-oss/node-firefox-connect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-firefox-connect 
Connects to a Firefox debuggable runtime.
This is part of the node-firefox project.
Installation
From git
git clone https://github.com/mozilla/node-firefox-connect.git
cd node-firefox-connect
npm installIf you want to update later on:
cd node-firefox-connect
git pull origin master
npm installnpm
npm install node-firefox-connectUsage
Connects to a Firefox runtime, given a port number, and returns a client that can be used to interact with said client.
// `connect` returns a Promise
connect(portNumber).then(function(client) {
});Example
var connect = require('node-firefox-connect');
connect(1234)
.then(function(client) {
// Let's show for example all the running apps
client.getWebapps(function(err, webapps) {
webapps.listRunningApps(function(err, apps) {
console.log("Running apps:", apps);
});
});
});History
This is based on initial work on fxos-connect by Nicola Greco.
