New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@zzzzbov/module-exists

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zzzzbov/module-exists

Checks if a node module may be included via `require`.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

moduleExists

Checks if a node module may be included via require.

Installation

NPM:

$ npm i @zzzzbov/module-exists --S

Yarn:

$ yarn add @zzzzbov/module-exists

Usage

const moduleExists = require('@zzzzbov/module-exists');

if (moduleExists('example')) {
    const example = require('example');
}

FAQs

Package last updated on 30 Nov 2016

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