cwmsjs v${packageVersion}
+
+ Hooks are made wrapping CWMSjs using code similar to the React example below.
+ They also provide variables for you to track the state, progress, and data of the request.
+
+ The header on the Groundwork-Water webpage provides a list of currently available hooks.
+
npm install cwmsjs --save
+${combinedImports}\n\n${formattedBlock}
+
+Use the published browser bundle from npm via jsDelivr, or download the same bundle from the matching GitHub release once release assets are enabled.
+
+` +
+ escapeHtml(`
+
+
+`) +
+ `
+`
+ );
+ // Write to file
+ const outputFilePath = path.join(
+ outputDirectory,
+ `${docName.replaceAll("-", "")}.html`
+ );
+ fs.writeFile(outputFilePath, filledTemplate, (err) => {
+ if (err) throw err;
+ console.log(`Example file created: ${outputFilePath}`);
+ });
+ });
+ } else {
+ console.log(`\tNo Source Code found for ${path.basename(filePath)}`);
+ }
+ });
+ });
+ function buildExampleLinks(prefix) {
+ return (
+ "
An example for calling the ${docName} endpoint via CDA in JavaScript
+Swagger UI for Endpoints
+