Open gre opened 9 years ago
Hi, socket-ntp is currently not browserify compliant. Here is how we can make it compliant:
in package.json, add:
"browser": "client/ntp"
in client/ntp.js:
if (typeof require === 'function') { module.exports = ntp; } else if (typeof define === 'function' && define.amd) { define('ntp', [], function () { return ntp; }); } else { root.ntp = ntp; }
Thanks
I'd like this.
Totally, happy to accept a PR for it! This code hasn't been maintained recently
Hi, socket-ntp is currently not browserify compliant. Here is how we can make it compliant:
in package.json, add:
in client/ntp.js:
Thanks