Pscan
Bun

property

Security.Scanner.scan

scan: (info: { packages: Package[] }) => Promise<Advisory[]>

Perform an advisory check when a user ran bun add <package> [...packages] or other related/similar commands.

If this function throws an error, Bun will immediately stop the install process and print the error to the user.