Skip to content
Does the current node version have support for the "exports" field in package.json?
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
test
.eslintrc
.gitignore
.npmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
browser.js
no.js
package.json
yes.js

README.md

has-package-exports Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

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

At the time of this writing, node v13+ has support for the "exports" 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

You can’t perform that action at this time.