JSPM

fxos-simulators

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q38444F
  • License ISC

Find bin files for FirefoxOS simulators

Package Exports

  • fxos-simulators

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 (fxos-simulators) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

fxos-simulators

Find Firefox OS simulators in your Firefox path

Install

# Library
$ npm install fxos-simulators

# Command line
$ npm install -g fxos-simulators

Usage

var findSimulators = require('fxos-simulators');
findSimulators(function(err, simulators){
  console.log(simulators);
})
// [ { version: '2.1', path: '/Users/mozilla/Library/Application Support/Firefox/Profiles/x6kiu2xm.default/extensions/fxos_2_1_simulator@mozilla.org/b2g/B2G.app/Contents/MacOS/b2g-bin' } ]

or you can look for a specific version:

var findSimulators = require('fxos-simulators');
findSimulators({version:'2.1'}, function(err, simulators){
  console.log(simulators);
})
// [ { version: '2.1', path: '/Users/mozilla/Library/Application Support/Firefox/Profiles/x6kiu2xm.default/extensions/fxos_2_1_simulator@mozilla.org/b2g/B2G.app/Contents/MacOS/b2g-bin' } ]

Usage with command line

$ fxos-simulators
[ { version: '2.1',
    bin: '/Users/mozilla/.../b2g-bin',
    profile: '/Users/mozilla/.../fxos_2_1_simulator@mozilla.org/profile' } ]
$ fxos-simulators --help
Usage: fxos-simulators [options]

Options:
   --version   Print version and exit