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.
- Host: GitHub
- URL: https://github.com/besworks/submodule-mapping
- Owner: besworks
- License: unlicense
- Created: 2022-05-28T19:22:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T00:03:40.000Z (11 months ago)
- Last Synced: 2025-03-17T01:25:01.729Z (11 months ago)
- Topics: example, export, import, javascript, js, modules, nodejs, package-json, testing
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.