Documentation
Installation
Run NgBastion with npx or install it as a dev dependency of your Angular workspace.
Requirements
- Node.js 22.22.3 or newer within 22.x, or 24.15.0 or newer within 24.x
These requirements apply to the machine running the scanner. The project being scanned only needs its sources; it is never built or executed.
Run without installing
From the root of your Angular workspace:
npx ngbastion scanCheck that the environment is ready:
npx ngbastion doctorInstall as a dev dependency
Pinning the version in package.json keeps local runs and CI on the same rules:
npm install --save-dev ngbastionnpx ngbastion init --preset recommendednpx ngbastion scanpnpm and Yarn work the same way (pnpm add -D ngbastion, yarn add -D ngbastion).
Dependencies of the scanned project
Installing your project's dependencies (npm ci) before scanning is recommended. With node_modules present, NgBastion identifies framework APIs through the TypeChecker. Without it, it falls back to reading import declarations and type annotations, and reports an unresolved-imports diagnostic so you know which mode was used.
Run from source
To work on NgBastion itself, see Contributing.