Skip to content

About

Does the current node version have support for requiring/importing its own name?

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

has-package-self-reference Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Does the current node version have support for requiring/importing its own name?

At the time of this writing, node v12.17+ and v13.7+ has support for self-referencing a package‘s name to access its "exports".

This library exports true if the current node version supports it, false if it does not, and null if it's in a browser.

Tests

Simply clone the repo, npm install, and run npm test

About

Does the current node version have support for requiring/importing its own name?

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages