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.
Install GroupDocs.Editor for Node.js:
After configuring the repository, you can install the GroupDocs.Editor package using npm:
npm install @groupdocs/editor
Example usage:
Here is a basic example of how to use GroupDocs.Editor in your Node.js application:
constgroupdocsEditor=require('@groupdocs/editor');// Create an instance of the Editor class
consteditor=newgroupdocsEditor.Editor("path/to/document");// Get document information
constdocumentInfo=editor.getDocumentInfo();console.log(documentInfo);// Convert document to HTML
consthtmlContent=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.
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.