An open API service indexing awesome lists of open source software.

https://github.com/shaack/import-node-modules


https://github.com/shaack/import-node-modules

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# import-node-modules

Helper to set a global `node_modules` variable to include from the /node_modules path in vanilla ES6 modules.

## Example

```html

// now you can use the `node_modules` variable to import from the `/node_modules` path
import {Chessboard} from `${node_modules}/cm-chessboard/src/Chessboard.js`;
console.log(Chessboard);

```

It's simple, it's stupid, but it works.