js-module-exists
v1.0.12
Published
Checks if a node module or file exists or not in the repository.
Downloads
5
Maintainers
Readme
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
| Method | Usage | | ------------------ | --------------------------------------------------------------------------------------------- | | 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: [email protected]
Support my work
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.