npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

has-package-self-reference

1.0.1

@ljharb

npmHomeRepoSnykSocket
Downloads:10
$ npm install has-package-self-reference
DailyWeeklyMonthlyYearly

has-package-self-reference Version Badge

Build Status 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 v13+ 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