Socket
Book a DemoInstallSign in
Socket

has-package-self-reference

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-package-self-reference

Does the current node version have support for requiring/importing its own name?

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

exports

FAQs

Package last updated on 28 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