Scaffold out a library for both the browser and node
The boilerplate repo is here.
This generator is inspired from sindresorhus/generator-nm.
The scaffolding is similar, it adds support for shipping your code to the browser using Rollup as a bundler.
npm install -g yonpm install -g generator-browser-node-module
First make sure you're in your project folder (
mkdir my-awesome-project && cd my-awesome-project/), then run
Browser Node Module.