Socket
Book a DemoInstallSign in
Socket

has-package-imports

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-package-imports

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

package.json

FAQs

Package last updated on 06 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts