Mongoose OS example project with standardization polyfill
At top of init.js add:
load('polyfill.js');
let intervalId = setInterval(function() {
// Will repeate every 1000 ms (1 sec)
}, 1000);
clearTimeout(intervalId);
moduleName.js:
module.exports = {
name: 'moduleName.js',
};
init.js:
let someModule = require('moduleName.js');
console.log('Required moduleName:', someModule.name);