JSLib ScriptΒΆ
The script is edited on the JSLib setup page, and the return value should be an object. The object which will be accessed in the including environment under the alias which it is given on the including setup page.
// pseudo JSLib script
var obj = {};
obj.say_hello = function(name){ alert('hello ' + name); }
module.exports = obj