Is it possible to use a code engine package as library in another package

AWieczorkiewicz
edited December 20 in Workflows

I have created a javascript code engine package with some functions and I would like to use that functions in another code engine package.

in the first package called 'myFirstPackage' :

function test() {
return 'Hello';
}

And in the second package:

const myPkg = require('myFirstPackage');

console.log(myPkg.test());

Best Answer

Answers