npm.io
1.0.1 • Published 5 months ago

boolean-pro

Licence
MIT
Version
1.0.1
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
2

boolean-pro

A npm pro package to get true and false values

Installation

You can install boolean-pro using npm:

npm i boolean-pro

Usage

const booleanPro = require('boolean-pro');

console.log(booleanPro.getTrue());  // true
console.log(booleanPro.getFalse()); // false

console.log(booleanPro.isTrue(booleanPro.getTrue())); // true
console.log(booleanPro.isFalse(booleanPro.getFalse())); // true
Returns

The function returns an object with the following properties:

  • getTrue: Functions that returns a boolean value indicating that its true.
  • getFalse: Function that returns a boolean value indicating that its false and not true.
  • isTrue: Function that checks if a given value is the boolean value indicating that its true.
  • isFalse: Function that checks if a given value is the boolean value indicating that its false and not true.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to customize it further to fit your style or any additional details you'd like to include!

Keywords