Programming Tech Brief By HackerNoon
Technology
The Easiest Way to Create Your First NPM Package
This story was originally published on HackerNoon at: https://hackernoon.com/the-easiest-way-to-create-your-first-npm-package.
A fast and easy way to create an NPM package from start to finish
Check more stories related to programming at: https://hackernoon.com/c/programming.
You can also check exclusive content about #npm-package, #frontend, #react, #microbundle, #library, #publish-npm-packages, #npm-tutorial, #hackernoon-top-story, #hackernoon-es, #hackernoon-hi, #hackernoon-zh, #hackernoon-fr, #hackernoon-bn, #hackernoon-ru, #hackernoon-vi, #hackernoon-pt, #hackernoon-ja, #hackernoon-de, #hackernoon-ko, #hackernoon-tr, and more.
This story was written by: @gmakarov. Learn more about this writer by checking @gmakarov's about page,
and for more stories, please visit hackernoon.com.
Let’s talk a bit about it microbundle. I find it particularly effective for simple libraries because you don’t have to worry about configuration, allowing you to focus on developing your package.
Here is a short list of its features:
Built-in configs; all you have to do is add an “exports” field in package.json
TypeScript support out of the box without tsconfig.json
Multiple output formats (CJS, UMD, and ESM)
Built-in Terser compression
Create your
podcast in
minutes
It is Free