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

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