https://p2m2.github.io/xcms-p2m2-tools/
npm should be installed.
export NODE_OPTIONS=--openssl-legacy-provider
# fastOptJS or fullOptJS check html/index.html
sbt fastOptJS
sbt fullOptJS
# open html/index.html
sbt fullOptJS::webpack
cp target/scala-2.13/scalajs-bundler/main/xcms-p2m2-tools-opt-bundle.js docs/
# open docs/index.html