playground

command
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command playground is the browser build of lockvet. It compiles to WebAssembly and powers https://matteo-sung.github.io/lockvet/ — paste a pull-request / compare / commit URL from any supported forge, or drop two lockfiles, and get the full lockvet report without installing anything.

It exposes two globals to JavaScript:

lockvetRun(opts) -> Promise<result>
lockvetVersion   -> string

opts (a plain object):

mode:      "url" | "files"
url:       PR / MR / compare / commit URL (mode "url")
token:     optional API token for the matched forge (mode "url")
oldName, oldData, newName, newData:  file names + Uint8Array (mode "files")
only:      -only filter pattern ("" = all)
freshDays: like -fresh-days (default 7)
noVulns, noMeta: like the CLI flags

result (a plain object):

terminal, markdown, json: the three report renderings (terminal = ANSI)
base, target, title:      labels
noChanges:  true when nothing relevant changed (message says why)
message:    human text when noChanges
warnings:   []string (non-fatal, e.g. OSV skipped)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL