Require for Drafts scripting work is as set out here.
Note that node.jsis not a core part of JavaScript or part of Drafts, so you need to use a non-node version in Drafts.
Require for Drafts scripting work is as set out here.
Note that node.jsis not a core part of JavaScript or part of Drafts, so you need to use a non-node version in Drafts.