jsenv

jsenv/importmap-node-module

Generate importmap for node_modules

JavaScript
38
6
No license

{ exports: { ".": { import: "./es/index.js", }, }, }, }, }); ``` ## Using import maps The generated importmap can be used in two ways: 1. As a separate file: ```html <script src="demo.importmap"></script> <script type="module"> import lodash from "lodash"; </script> ``` 2. Embedded in HTML: ```html <script type="importmap"> { "imports": { "lodash": "/node_modules/lodash/lodash.js" } } </script> ``` ## TypeScript Support This package has built-in TypeScript support. TypeScript definitions are included in the package. ## See Also - [es-module-shims](https://github.com/guybedford/es-module-shims)

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

dmail's profile
dmail
286 contributions
bakkot's profile
bakkot
2 contributions
kayahr's profile
kayahr
2 contributions
codedust's profile
codedust
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet