
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@dxos/browser-runner
Advanced tools
CLI to run JavaScript files into a headless browser.
$ npm install -g @dxos/browser-runner
$ browser-runner --help
cli.js <file> [options] [puppeteerOptions]
runs the script
Positionals:
file the file to run [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--config, -c webpack config [string]
--watch, -w watch [boolean]
--port, -p port to run [number]
--env env file [string]
$ browser-runner script.js
You can test with Firefox using the puppeteer option product
.
$ browser-runner script.js --product firefox
Important: First time the execution will take longer since it has to download the firefox browser.
browser-runner
cannot know when your script finish the execution.
If you want to exit the process at some point in your script runs:
process.exit(code) // 0 success 1 error
Or throw an unhandled Error
Your script can use environment variables from the shell or a .env
file.
// script.js
console.log(process.env.NODE_ENV) // development
console.log(process.env.SOME_VARIABLE) // foo
$ NODE_ENV=development SOME_VARIABLE=foo browser-runner scripts.js
PRs accepted.
GPL-3.0 © dxos
FAQs
CLI to run JavaScript files into a headless browser.
We found that @dxos/browser-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.