Odd-Even-True-False
-------------------------
Table of Contents
About
Latest Version - v1.0.0
This Is My First NPM Package. It Basically Tell You If A Number Is Even Or Odd (Nothing Too Complex). Because Its My First Package I Don't Know Much About Creating NPM Packages So There Isn't Really Much In This But As I Learn New Things I May Add More Stuff In This.
Getting Started
These Instructions Below Will Get You Downloaded And Started With This NPM Package
Prerequisites
- Node
- NPM
Installing
$ npm install odd-even-true-false
Usage
Once You Have Installed It There Are Two Ways To Use This Package
Method 1 (Using True Or False Function)
- Require The Package
const package = require('odd-even-true-false');
- Use The 'trueorfalse' Function
console.log(package.trueorfalse(22));
- In The trueorfalse Parameter, You Can Pass Any Number
- And The Output Is
True
Method 2 (Using Odd Or Even Function)
- Require The Package
const package = require('odd-even-true-false');
- Use The 'oddoreven' Function
console.log(package.oddoreven(22));
- In The oddoreven Parameter, You Can Pass Any Number
- And The Output Is
Even