1.0.0 • Published 2 years ago

odd-even-true-false v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Status Downloads GitHub Issues License

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.

These Instructions Below Will Get You Downloaded And Started With This NPM Package

  1. Node
  2. NPM
$ npm install odd-even-true-false

Once You Have Installed It There Are Two Ways To Use This Package

Method 1 (Using True Or False Function)

  1. Require The Package
const package = require('odd-even-true-false');
  1. Use The 'trueorfalse' Function
console.log(package.trueorfalse(22));
  1. In The trueorfalse Parameter, You Can Pass Any Number
  2. And The Output Is
True

Method 2 (Using Odd Or Even Function)

  1. Require The Package
const package = require('odd-even-true-false');
  1. Use The 'oddoreven' Function
console.log(package.oddoreven(22));
  1. In The oddoreven Parameter, You Can Pass Any Number
  2. And The Output Is
Even