I tried but couldn't find any examples or guidance for using node libraries
within .sjs files on the MarkLogic server. How could we use, for example,
the npm module 'node-xlsx' in a transform?
It would be great to be able to leverage the power of the npm and node
micro-library ecosystem within .sjs files.
Perhaps there could be an .npmrc file controlled via the MarkLogic admin to
specify if the server is allowed to talk to registry.npmjs.com or an
enterprise npm registry or non at all. Then, a REST API could be exposed to
write dependencies to the MarkLogic's package.json that would automatically
do an 'npm install' so that when an .sjs file is installed, it can execute
the line:
```spreadsheetShredder = require('node-xlsx');
Regards,
Will
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general