https://github.com/vweevers/create-firefox-profile
Create a temporary Firefox profile folder for test runs.
https://github.com/vweevers/create-firefox-profile
cross-platform firefox nodejs profile testing-tools
Last synced: about 1 month ago
JSON representation
Create a temporary Firefox profile folder for test runs.
- Host: GitHub
- URL: https://github.com/vweevers/create-firefox-profile
- Owner: vweevers
- License: mit
- Created: 2018-05-20T13:49:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T17:46:10.000Z (over 5 years ago)
- Last Synced: 2025-10-27T04:39:03.417Z (8 months ago)
- Topics: cross-platform, firefox, nodejs, profile, testing-tools
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# create-firefox-profile
**Create a temporary Firefox profile folder for test runs. Extracted from [`osx-firefox`](https://github.com/juliangruber/osx-firefox) and [`linux-firefox`](https://github.com/juliangruber/linux-firefox), to be used for `windows-firefox` (and then the others too).**
[](https://www.npmjs.org/package/create-firefox-profile)
[](https://www.npmjs.org/package/create-firefox-profile)
[](http://travis-ci.org/vweevers/create-firefox-profile)
[](https://ci.appveyor.com/project/vweevers/create-firefox-profile)
[](https://david-dm.org/vweevers/create-firefox-profile)
[](https://standardjs.com)
## Example
```js
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 ` or `-profile ` depending on the platform.
## API
### `profile([options, ]callback)`
Options:
- `proxy` (string): HTTP proxy
- `noProxy` (array): hosts to disable proxy on
- `prefs` (object): custom preferences
## Install
With [npm](https://npmjs.org) do:
```
npm install create-firefox-profile
```
## License
[MIT](http://opensource.org/licenses/MIT) © Julian Gruber, Vincent Weevers