fxos-simulators
v0.3.0
Published
Find bin files for FirefoxOS simulators
Downloads
8
Maintainers
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/[email protected]/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/[email protected]/b2g/B2G.app/Contents/MacOS/b2g-bin' } ]
Usage with command line
$ fxos-simulators
[ { version: '2.1',
bin: '/Users/mozilla/.../b2g-bin',
profile: '/Users/mozilla/.../[email protected]/profile' } ]
$ fxos-simulators --help
Usage: fxos-simulators [options]
Options:
--version Print version and exit