DEV Community

Piotrek
Piotrek

Posted on

Npm library exports

I think about writing an npm package that we can easily add by this methods:
import lib from 'lib'
or
<script src="lib.min.js"></script>

and use global in html documents.

What is the best way to do that?

Top comments (0)