Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 25 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T17:46:10.000Z (almost 4 years ago)
- Last Synced: 2024-10-17T17:09:13.714Z (29 days 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).**
[![npm status](http://img.shields.io/npm/v/create-firefox-profile.svg?style=flat-square)](https://www.npmjs.org/package/create-firefox-profile)
[![node](https://img.shields.io/node/v/create-firefox-profile.svg?style=flat-square)](https://www.npmjs.org/package/create-firefox-profile)
[![Travis build status](https://img.shields.io/travis/vweevers/create-firefox-profile.svg?style=flat-square&label=travis)](http://travis-ci.org/vweevers/create-firefox-profile)
[![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/create-firefox-profile.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/vweevers/create-firefox-profile)
[![Dependency status](https://img.shields.io/david/vweevers/create-firefox-profile.svg?style=flat-square)](https://david-dm.org/vweevers/create-firefox-profile)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](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