wasm

command
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command skills-wasm exposes the REAL SecureVibe scanners to the browser so the docs playground runs the same engine the CLI does — no backend, no network, no telemetry. The malicious-package DB, typosquat DB, and secret-detection rules are baked in via go:embed (populated by `make wasm`), and the Library reads them through its fs.FS data path (NewLibraryFS).

JS API (set on the global object once the runtime is up):

svScanDeps(filename, content) -> JSON {deps, findings}
svScanSecrets(text)           -> JSON CheckSecretPatternResult
svReady                       -> true
window.svOnReady()            -> called if defined, after setup

Jump to

Keyboard shortcuts

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