Install GroupDocs.Redaction for Node.js via Java

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Redaction MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-redaction -- dnx GroupDocs.Redaction.Mcp --yes
Folders, licensing and more →

Prerequisites

  • Node.js 20 LTS or later
  • Java JRE/JDK 8+ (17 LTS recommended)
  • Native build tools if required by node-gyp on your OS

See System requirements.

Install from npm

Note: The current version shown below is 26.11.0. Always check npm for the latest version.

npm install @groupdocs/groupdocs.redaction@26.11.0

Or with yarn / pnpm:

yarn add @groupdocs/groupdocs.redaction@26.11.0
pnpm add @groupdocs/groupdocs.redaction@26.11.0

Set up Java (JAVA_HOME)

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"

Verify installation

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.

Apply a license

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.