📋 A template for JS packages with my common tooling
MIT License
JS package template repository
package-template
is a template repository for my JavaScript modules.
Some standout features include...
All this clocks in at around kB gzipped.
Requires Node >= 8.0.0.
Install @madebyconnor/package-template
with your favorite package manager.
# yarn
yarn add @madebyconnor/package-template
# npm
npm i @madebyconnor/package-template
@madebyconnor/package-template
exports a function
import { sayHello } from '@madebyconnor/package-template';
sayHello('Tessa');
/*
returns:
Hello Tessa
*/
Many development conveniences are placed behind process.env.NODE_ENV !== "production"
conditionals. When bundling your app, it's a good idea to replace these code snippets such that a minifier (like uglify) can sweep them away and leave a smaller overall bundle.
Here are instructions for some of the popular bundlers:
See GitHub Releases.