JavaScript port of the OpenChemLib Java library.
npm install openchemlib
To build this project, you need :
- Java JDK (Tested with version 21)
- GWT (Tested with version 2.12.2, Download build here)
- Node.js (Tested with version 22, Download here)
npm ci
Copy config.default.json
to config.json
and put the path to the GWT classes on your computer.
If you want to use a custom JDK installation, set the "jdk" key to be the path to your JDK directory.
To run one of the scripts, use npm run <scriptName>
.
To pass additional options, use npm run <scriptName> -- --option
.
Options :
- -m [name]: only process module "name"
- -v: verbose output
Compile and export the Java API.
Copy the required java files from the openchemlib project.