Installation
How to install pii-mask packages.
Install the core package
npm install @pii-mask/coreOr with pnpm:
pnpm add @pii-mask/coreOptional packages
# CLI for file processing
npm install -g @pii-mask/cli
# React bindings
npm install @pii-mask/react
# NLP-powered detection
npm install @pii-mask/nlpRequirements
- Node.js 18 or later
- TypeScript 5.x (recommended)
Substitute mode
If you want to use substitute mode (generates realistic fake data), install @faker-js/faker as a peer dependency:
npm install @faker-js/faker@faker-js/faker is optional and only loaded when mode: 'substitute' is used.