Here you can find some modules we host inside our @extendscript namespace on npm. These modules create a dry package environment targeting the ExtendScript environment. Giving the flexibility to pick and choose implemetations and share reusable code.
We only use npm to manage packages and versions. This means that after we install a peer we still need to finish it's installation by including it's main entry point:
#include 'node_modules/@extendscript/modules.init/init.js' #include 'node_modules/@extendscript/another.module/module.js'
The order of subsequent installs does generally not matter. Just add them after the only required module modules.init.
There is a warning if a peer is not installed but there is no warning for missing includes.
Read the docs