Installation

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.Editor 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-editor -- dnx GroupDocs.Editor.Mcp --yes
Folders, licensing and more →

On this page

Install using npm

All Node.js packages are hosted at GroupDocs Artifact Repository. You can easily reference GroupDocs.Editor for Node.js API directly in your npm project using the following steps.

  1. Install GroupDocs.Editor for Node.js:

    Install the GroupDocs.Editor package from npm:

    npm install @groupdocs/groupdocs.editor@26.7.0
    

    Or without pinning a version (latest published):

    npm install @groupdocs/groupdocs.editor
    
  2. Example usage:

    Here is a basic example of how to use GroupDocs.Editor in your Node.js application:

    const groupdocsEditor = require('@groupdocs/groupdocs.editor');
    
    // Create an instance of the Editor class
    const editor = new groupdocsEditor.Editor("path/to/document");
    
    // Get document information
    const documentInfo = editor.getDocumentInfo();
    console.log(documentInfo);
    
    // Convert document to HTML
    const htmlContent = editor.edit();
    console.log(htmlContent);
    
    // Save the edited HTML back to the original document format
    editor.save(htmlContent, "path/to/save/document");
    

By following these steps, you can integrate and use GroupDocs.Editor for Node.js in your projects. For more details, refer to the official GroupDocs documentation.

On this page