JSPM

audit-code

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q43770F
  • License UNLICENSED

AUDIT CLI binaries with automatic platform download and verification.

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 (audit-code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    audit-code

    audit-code installs a prebuilt AUDIT binary for your OS/arch at install time.

    Install

    npm i -g audit-code
    audit --help

    How it works

    • postinstall resolves your platform (darwin-arm64, darwin-x64, linux-x64, win32-x64).
    • It downloads the matching release asset and audit-checksums.txt.
    • It verifies SHA-256 before saving the binary into vendor/<platform>-<arch>/.
    • bin/audit.js launches the binary with inherited stdio.

    Binary source override

    Set AUDIT_BINARY_BASE_URL when testing mirrors or non-GitHub release endpoints:

    export AUDIT_BINARY_BASE_URL="https://github.com/<owner>/<repo>/releases/download/v0.2.0"

    The installer appends /<asset> and /audit-checksums.txt to that base.