Does anyone know if Node.js is now supported in NS...
# suitescript
d
Does anyone know if Node.js is now supported in NS? I was reading some postings from 2016 that says it was not supported, I am just wondering if that might have changed in a recent release
b
if you mean will modules written for node js work in suitescript
no
primarily because suitescript does not expose any of node's native core modules and does not support node's module format
you might get the boring answer that suitescript 2.1 is built on top of graal, which aims to be compatible with node js
that answer is largely misleading since the js environment in suitescript 2.1 is stripped down
d
@battk I guess what I am asking is if I can bring in Node.js as a external library and use it in serverside scripts
b
that makes less sense honestly
Node.js is not a library
its a server
its not something that a javascript engine can run
d
ok well I guess I am a idiot and not understanding it (Background not in JS)
so I am trying to import the AWS SDK libraries and utilize them in NS. On the AWS page it had mentioned build on Node.js. I had assumed that Node.js was something like jQuery, clearly it is not.
b
if it helps, node is what you would use to run javascript code
d
@battk yeah thats clear now...