Napping Panda Missionaries

    has-package-self-reference
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/has-package-self-reference package

    1.0.1 • Public • Published

    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

    Install

    npm i has-package-self-reference

    DownloadsWeekly Downloads

    13

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • ljharb