
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
js-module-exists
Advanced tools
Checks if an es module/ npm package exists in package.json file and returns a boolean value.
npm install js-module-exists --save-dev
yarn add -D js-module-exists
| Method | Usage |
|---|---|
| moduleExists() | Еasy to use a method that will return a boolean value after checking the module/ npm package. |
import { moduleExists } from "js-module-exists";
if (moduleExists("some-npm-package-name")) {
//=> true
} else {
//=> false
}
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
If you like my work and want to support me to work hard, please donate via:
| Revolut | Buy me a coffee |
|---|---|
![]() |
Thanks a bunch for supporting me! It means a LOT 😍
Copyright ©️2024. All rights reserved.
FAQs
Checks if a node module or file exists or not in the repository.
We found that js-module-exists demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.