Module Import For Script Expressions

Post Reply
DtM
Member
Posts: 27
Joined: Tue Aug 04, 2015 3:02 pm

Module Import For Script Expressions

Post by DtM »

Hello,

Like many others, we're looking at replacing all of our legacy Script Expressions with new, Node.JS Script Expressions.

I have a question regarding Module Imports.

The placeholder of new Script Expressions has the comment of

Code: Select all

// Your imports here
Does this apply to only built in modules (path, fs, etc.) or am I able to install other modules via npm to use in my Script Expressions?

A lot of our legacy Script Expressions use database connections, which we'd ideally like to keep, otherwise it makes the task a lot more involved.

Many thanks,

Dan
mkayyyy
Member
Posts: 80
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: Module Import For Script Expressions

Post by mkayyyy »

IIRC the imports only relate to built in modules, external modules aren't currently supported in Script expressions.
Post Reply