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

js-module-exists

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-module-exists

Checks if a node module or file exists or not in the repository.

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

Follow me Sponsors MIT License Node Version

JS Module Exists

Checks if an es module/ npm package exists in package.json file and returns a boolean value.

Table of contents

Installation

  • Via npm:
npm install js-module-exists --save-dev

  • Via yarn:
yarn add -D js-module-exists

How to use?

API

MethodUsage
moduleExists()Еasy to use a method that will return a boolean value after checking the module/ npm package.
  • moduleExists() method
  • Accepts string and returns a boolean value.
import { moduleExists } from "js-module-exists";

if (moduleExists("some-npm-package-name")) {
  //=> true
} else {
  //=> false
}

Developer Support:

  • If you saw some issue/bug 🐛 related to the specific release version.
  • If you want some new feature or change to be added/implemented. 😊

Please, contact the creator of the js-module-exists, so he will be able to fix or improve it:

Kristiyan Velkov

Email: christiyanweb@gmail.com

linkedin

portfolio

Support my work

If you like my work and want to support me to work hard, please donate via:

RevolutBuy me a coffee
Krisityan Velkov - Revolut

Thanks a bunch for supporting me! It means a LOT 😍

Copyright ©️2024. All rights reserved.

Keywords

npm package

FAQs

Package last updated on 17 Feb 2024

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