Installation
Install as Dev Dependency
FS Guard should be installed as a development dependency since it's used for validation during development and in CI:
bash
# npmnpm install --save-dev @promise-inc/fs-guard
# yarnyarn add --dev @promise-inc/fs-guard
# pnpmpnpm add -D @promise-inc/fs-guardGlobal Installation
You can also install FS Guard globally to use it across multiple projects:
bash
# npmnpm install -g @promise-inc/fs-guard
# Then use it in any projectfs-guard --preset react-tsNo Installation (npx)
Run FS Guard without installing using npx. This is useful for quick validation:
bash
npx @promise-inc/fs-guard --preset nestjsFor CI environments, installing as a dev dependency is recommended for faster builds and version locking.