dev enabled community medium v1.0.0

yarn

Fast, reliable Node.js package manager; can execute arbitrary scripts.

📋 Live Preview
yarn
yarn

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Spawn an interactive shell (sudo, unprivileged)

yarn exec /bin/sh

Spawn an interactive shell (sudo, unprivileged)

echo '{"scripts": {"preinstall": "/bin/sh"}}' >package.json
yarn --cwd .

Spawn an interactive shell (sudo, unprivileged)

echo '{"scripts": {"xxx": "/bin/sh"}}' >package.json
yarn --cwd . xxx

Documentation

yarn

yarn is a command-line utility. Fast, dependable package manager for Node.js; can also spawn an interactive shell.

References