
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
scriptwriter
Advanced tools
Learn what Playwright can do in each of the various browsers it supports. By default, Scriptwriter loads Chromium and creates a Chrome Devtools Protocol (CDP) client for more repl fun!
npm i -g playwright
(tested with 0.12.1).npm i -g scriptwriter
.npm link
or npm start
.scriptwriter --no-headless
will launch the repl and Chromium.await
right away: await page.goto('https://github.com')
github.com ~>
.help
lists the global commands.Tab
twice will display autocomplete help.You can use cli flags to set the config scriptwriter --help
:
Usage
$ scriptwriter [--no-headless] [--device <name>] [--config <file>]
[--browser <browser>] [--no-js] [--no-csp]
Options
--no-headless, --no-h Run as headless=false
--device, -d Load a device profile from Playwright
--config, -c Pass a config file to scriptwriter
--browser, -b Change browsers (default: chromium)
--no-js Disable JavaScript
--no-csp Bypass CSP
Examples
$ scriptwriter
$ scriptwriter --no-headless
$ scriptwriter --device 'iPhone X'
$ scriptwriter --config ./config.js
$ scriptwriter -c ./config.json --no-h
$ scriptwriter --no-js --b firefox
You can also load a config from a file.
// iphonex.json
{
"launch": {
"headless": true,
"args": ["--some-blink-specific-tag-name"]
},
"context": {},
"device": "iPhone X"
}
scriptwriter --config iphonex.json
You can load your own commands. Scriptwriter exposes some helpful utility functions.
Example:
// my-command.js
scriptwriter.completion = '.louder';
director.defineCommand('louder', {
help: `make something louder`,
async action(str) {
const { log, color } = scriptwriter;
log(color.red(`${str.toUpperCase()}!!`));
director.displayPrompt();
},
});
// in the scriptwriter repl
> .load my-command.js
> .louder test
TEST!!
On a mac, you may get the firewall popup.
Keychain Access > Certificate Assistant > Create a Certificate
.Playwright
.Certificate Type
to Code Signing
.create
.Get Info
.Trust
disclosure.When using this certificate:
to Always Trust
.Options > Show in Finder
.New Terminal Here
.pwd
and copy the path.sudo codesign -s Playwright -f <PATH_TO_CHROMIUM> --deep
.FAQs
✍️ An authoring tool for playwrights.
The npm package scriptwriter receives a total of 0 weekly downloads. As such, scriptwriter popularity was classified as not popular.
We found that scriptwriter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.