https://github.com/manojtharindu11/is-def
My first npm package to check if a given string is equal to 'DEF'.
https://github.com/manojtharindu11/is-def
github-package javascript npm
Last synced: 4 months ago
JSON representation
My first npm package to check if a given string is equal to 'DEF'.
- Host: GitHub
- URL: https://github.com/manojtharindu11/is-def
- Owner: manojtharindu11
- License: mit
- Created: 2025-01-22T17:16:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T06:46:07.000Z (over 1 year ago)
- Last Synced: 2025-06-13T09:58:36.859Z (12 months ago)
- Topics: github-package, javascript, npm
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@manojtharindu11/is-def
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# is-def-npm-package
**is-def-npm-package** is a simple utility that checks if a given string is equal to `'DEF'`. This is my first npm package, designed to demonstrate the basic functionality of a string comparison.
## Installation
You can install the package via npm or yarn:
```bash
npm i @manojtharindu11/is-def
```
or
```bash
yarn add @manojtharindu11/is-def
```
## Usage
After installation, you can import the `isDef` function into your JavaScript code and use it to check if a string is `'DEF'`.
### Example
```javascript
const isDef = require("@manojtharindu11/is-def");
console.log(isDef("DEF")); // true
console.log(isDef("def")); // false
console.log(isDef("DEF123")); // false
console.log(isDef("")); // false
```
### Function Signature
```javascript
function isDef(value) {
// Your implementation
}
```
### Parameters
- `value` (string): The string you want to check.
### Returns
- `true` if the value is exactly equal to `'DEF'`, otherwise `false`.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.