Skip to content

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

License

Notifications You must be signed in to change notification settings

inspect-js/has-package-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

has-package-imports Version Badge

github actions coverage 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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published