Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/v3xlabs/is-probably-even
Is probably even, exactly how you expect it to work
https://github.com/v3xlabs/is-probably-even
javascript npm yarn
Last synced: about 1 month ago
JSON representation
Is probably even, exactly how you expect it to work
- Host: GitHub
- URL: https://github.com/v3xlabs/is-probably-even
- Owner: v3xlabs
- License: gpl-3.0
- Created: 2021-12-03T09:27:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T13:49:46.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T14:25:47.308Z (about 2 months ago)
- Topics: javascript, npm, yarn
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/is-probably-even
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-probably-even [![npm](https://img.shields.io/npm/v/is-probably-even)](https://www.npmjs.com/package/lucemans/is-probably-even) [![luc.computer](https://img.shields.io/badge/luc.computer-online-blue)](https://luc.computer/)
> Return true if the number passed is even, hopefully...
> Disclaimer: This project only works as intended 50% of the time, this is by design, probablities can be tweaked :smirk:
## Install
Install with [yarn](https://www.yarnpkg.com)
```sh
$ yarn add is-probably-even
```Install with [npm](https://www.npmjs.com/)
```sh
$ npm install --save is-probably-even
```## How to use it
```js
var isEven = require('is-probably-even');isEven(1); //false, or true 🤷
isEven(2); //true, or false 🤷
isEven(3); //false, or true 🤷
// And so on... just for a little while
```## About
This is a 100% not a serious project, and it is made to help the community laugh. There are a lot of cases where young developers face the issue of finding if a number is maybe but not really even, so I decided to help them by creating this beautiful humorous package. Hopefully, some day it will be completed...
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.