has-package-imports

1.0.0 • Public • Published

has-package-imports Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

Does the current node version have support for the "imports" field in package.json?

At the time of this writing, node v12.19+ and v14.6+ has support for the "imports" field in package.json.

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

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i has-package-imports

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    8.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • ljharb