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

https://github.com/besworks/submodule-mapping

Test case for demonstrating import/export mapping of NodeJS submodules.
https://github.com/besworks/submodule-mapping

example export import javascript js modules nodejs package-json testing

Last synced: 11 months ago
JSON representation

Test case for demonstrating import/export mapping of NodeJS submodules.

Awesome Lists containing this project

README

          

# Submodule Mapping Test

This project demonstrates mapping NodeJS submodules as named imports with wildcard substituion.

## Usage

```
git clone git@github.com:besworks/submodule-mapping.git
cd submodule-mapping
npm run start
```

There are no dependencies to install, just run the package and observe the console output. You will notice how all the nested submodule exports are available. Each nested path contains an `index.js` file which exports it's siblings. You can see how they are imported in `./common/index.js`.