@zzzzbov/module-exists

0.0.2 • Public • Published

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');
}

Readme

Keywords

none

Package Sidebar

Install

npm i @zzzzbov/module-exists

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • zzzzbov