1.0.0 • Published 7 years ago
create-firefox-profile v1.0.0
create-firefox-profile
Create a temporary Firefox profile folder for test runs. Extracted from osx-firefox and linux-firefox, to be used for windows-firefox (and then the others too).
Example
const profile = require('create-firefox-profile')
profile({ proxy: 'http://example.local' }, function (err, folder) {
if (err) throw err
// Absolute path to a temporary directory
console.log(folder)
})Then pass folder to firefox with --profile <path> or -profile <path> depending on the platform.
API
profile([options, ]callback)
Options:
proxy(string): HTTP proxynoProxy(array): hosts to disable proxy onprefs(object): custom preferences
Install
With npm do:
npm install create-firefox-profileLicense
MIT © Julian Gruber, Vincent Weevers
1.0.0
7 years ago