Install GroupDocs.Redaction for Node.js via Java
Leave feedback
On this page
- Node.js 20 LTS or later
- Java JRE/JDK 8+ (17 LTS recommended)
- Native build tools if required by
node-gypon your OS
See System requirements.
npm install @groupdocs/groupdocs.redaction
Or with yarn / pnpm:
yarn add @groupdocs/groupdocs.redaction
pnpm add @groupdocs/groupdocs.redaction
Windows (PowerShell):
$env:JAVA_HOME="C:\Program Files\Java\jdk-17"
$env:Path="$env:JAVA_HOME\bin;$env:Path"
Linux/macOS:
export JAVA_HOME=/usr/lib/jvm/java-17
export PATH="$JAVA_HOME/bin:$PATH"
const redaction = require('@groupdocs/groupdocs.redaction');
try {
console.log('Redactor:', typeof redaction.Redactor);
console.log('GroupDocs.Redaction loaded successfully.');
process.exit(0);
} catch (e) {
console.error('Failed to load GroupDocs.Redaction:', e);
process.exit(1);
}
Run with node check.js.
const redaction = require('@groupdocs/groupdocs.redaction');
const license = new redaction.License();
license.setLicense('GroupDocs.Redaction.lic');
Without a license the evaluation limitations apply — see Evaluation limitations and licensing.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.