Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conartist6/node-self-ref-test
A repo to test the behavior of node package self-references
https://github.com/conartist6/node-self-ref-test
Last synced: 17 days ago
JSON representation
A repo to test the behavior of node package self-references
- Host: GitHub
- URL: https://github.com/conartist6/node-self-ref-test
- Owner: conartist6
- Created: 2022-04-12T14:55:24.000Z (over 2 years ago)
- Default Branch: trunk
- Last Pushed: 2022-04-12T16:31:43.000Z (over 2 years ago)
- Last Synced: 2024-10-29T11:45:26.290Z (2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node package self-ref test
Node modules are allowed to import the package they belong to by name. This repo exists to test the intricacies of that behavior. Here is what I have observed:
## Nested packages
When nested packages are present, a self-reference can only be made to the nearest containing package.
```sh
node bar/test-bar.js // logs bar
node bar/test-foo.js // errors
```