在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mozilla/node-firefox-connect开源软件地址:https://github.com/mozilla/node-firefox-connect开源编程语言:JavaScript 100.0%开源软件介绍:node-firefox-connect
This is part of the node-firefox project. InstallationFrom gitgit clone https://github.com/mozilla/node-firefox-connect.git
cd node-firefox-connect
npm install If you want to update later on: cd node-firefox-connect
git pull origin master
npm install npmnpm install node-firefox-connect UsageConnects 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) {
}); Examplevar 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);
});
});
}); HistoryThis is based on initial work on fxos-connect by Nicola Greco. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论