The complete project GroupDocs.Total for Node.js via Java — Code Examples with runnable examples and sample files is hosted on GitHub. The structure and commands below are based on this repository and its README.
cd ./GroupDocs.Total-for-Node.js-via-Java/Examples
Install dependencies
npm install
This pulls @groupdocs/groupdocs.total from npm. We typically keep the dependency on the latest published version; to use another version, change it in package.json.
If installation fails with native build errors, review the build tools section in System Requirements.
Configure license (optional)
If you have a license file, you can set the license path in the run_all_examples.js file. By default, the runner checks for the GROUPDOCS_LICENSE_PATH (or GROUPDOCS_LIC_PATH) environment variable or looks for files with the .lic extension in the Examples directory. You can also get a temporary license to test all the features.
Without a license the APIs run in evaluation mode and add trial watermarks to output.
You can also run an individual example by navigating to the folder containing the example script and running it. Output files are placed in the same folder as the script file.