Hi, I want to create a file with Browserify, but how can I export the function?
var JSSoup = require("jssoup");
module.exports.getTxt = function(txt) {
var soup = JSSoup(txt, 'lxml');
........
}
>> browserify file.js -s jssoup -o bundle.js
when I load the bundle.js with app.LoadScript("bundle.js"); I cannot use the function getTxt(); -> the function is not defined.
Has anyone an idea?
Thanks!!!