Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```