JSPM

create-firefox-profile

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q52480F
  • License MIT

Create a temporary Firefox profile folder for test runs

Package Exports

  • create-firefox-profile

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

Readme

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).

npm status node Travis build status AppVeyor build status Dependency status JavaScript Style Guide

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 proxy
  • noProxy (array): hosts to disable proxy on
  • prefs (object): custom preferences

Install

With npm do:

npm install create-firefox-profile

License

MIT © Julian Gruber, Vincent Weevers