Giter VIP home page Giter VIP logo

node-firefoxos-cli's Introduction

Firefox OS Node Command Line Develoment Tools

node library + command line tool to perform basic web app development on Firefox OS phones.

Currenty supporting

  • Installing app
  • Taking screenshots
  • Logcat
  • Reset b2g process
  • Close App
  • Launch App

Next to come

  • Uninstall

Based on @fabricedesr amazing work on b2gremote and digitalrald for his work on make-fxos-install

Don't forget

Enable remote debugging in the device

npm install

Examples

In the examples folder you could find some code that shows the use of this library, also find below some code examples.

Installing

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.installPackagedApp('boilerplate', './application.zip').then(
  function() {
    console.log('Successfuly installed');
  },
  function(err) {
    console.error('Error updating app: ' + err);
  }
).then(process.exit, process.exit);

Launching an app

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.launchApp('boilerplate').then(process.exit);

Stopping an app

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.closeApp('boilerplate').then(process.exit);

Reset B2G process

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.resetB2G().then(function onReset() {
  console.log('B2G process reseted');
  process.exit(0);
});

Logcat

var ffos_cli = require('node-firefoxos-cli');

//Output logcat from device continously
ffos_cli.logcat();

node-firefoxos-cli's People

Contributors

arcturus avatar bitdeli-chef avatar dcoloma avatar ferjm avatar pdehaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-firefoxos-cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.