This is a simple example of a JavaScript module, using Webpack 4 and Babel to generate a browser compatible UMD version.
It also uses Jest as unit testing.
git clone https://github.com/codeKonami/npm-module-starter.git
cd npm-module-starter
npm install
npm run test # to launch the tests
npm run build # to build the distro