How to write a JavaScript package for both Node and the browser | Dark Hacker News