UNPKG

@vigilbase/cli

Version:

Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.

6 lines (5 loc) • 304 B
import { readFileSync } from 'node:fs'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; const packageJsonPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'); export const CLI_VERSION = JSON.parse(readFileSync(packageJsonPath, 'utf8')).version;