JSPM

@openlabs/scanr_cli

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q37276F
  • License Apache-2.0

Scanr CLI distribution package

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@openlabs/scanr_cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @openlabs/scanr_cli

    Scanr CLI is an open-source SCA (Software Composition Analysis) and dependency vulnerability scanner for Node.js, Python, and Rust.

    Use it in local development and CI/CD pipelines to detect CVE/OSV vulnerabilities, generate SBOM (CycloneDX), enforce security policy, and export JSON/SARIF reports.

    Features

    • Dependency scanning across package-lock.json, requirements.txt, pyproject.toml, Cargo.lock
    • CVE/OSV vulnerability lookup with severity and remediation hints
    • DevSecOps CI policy checks (scanr.toml) with deterministic exit codes
    • License compliance policy enforcement
    • Baseline security debt tracking (scanr baseline save/status)
    • Project-local cache with offline mode for stable pipeline runs
    • CycloneDX SBOM generation and SBOM diff
    • Structured outputs for automation: JSON and SARIF
    • Interactive full-screen TUI (scanr)

    Install

    npm install -g @openlabs/scanr_cli

    After install:

    scanr --version
    scanr --help

    Bun users can install the same package:

    bun install -g @openlabs/scanr_cli

    Quick Start

    scanr scan .
    scanr scan . --ci
    scanr scan . --json
    scanr scan . --sarif
    scanr baseline save
    scanr baseline status
    scanr sbom generate
    scanr sbom diff old.cdx.json new.cdx.json
    scanr trace minimatch
    scanr

    CI Usage

    scanr scan . --ci

    scanr.toml example:

    max_critical = 0
    max_high = 2
    cache_enabled = true
    cache_ttl_hours = 24
    
    [license]
    enabled = true
    block = ["GPL-3.0", "AGPL-3.0"]
    allow_only = []
    fail_on_unknown = true
    enforce_in_ci = true

    Exit Codes

    • 0: success
    • 1: execution error
    • 2: vulnerability policy violation
    • 3: license policy violation
    • 4: both vulnerability and license policy violations

    Update / Uninstall

    npm update -g @openlabs/scanr_cli
    npm uninstall -g @openlabs/scanr_cli