versionend

1.0.2 • Public • Published

Utility Functions Package

This package provides a collection of utility functions for common tasks in JavaScript.

Installation

Install the package using npm:

npm install utility-functions

Usage

  1. Require the package in your Node.js application:
const { isEven, isOdd, factorial } = require('utility-functions');
  1. Use the utility functions in your code:
console.log(isEven(4)); // true
console.log(isOdd(4)); // false
console.log(factorial(5)); // 120

Available Functions

isEven(num)

Returns true if the given number is even, otherwise returns false.

isOdd(num)

Returns true if the given number is odd, otherwise returns false.

factorial(num)

Calculates the factorial of the given number and returns the result.

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i versionend

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.92 kB

Total Files

3

Last publish

Collaborators

  • superrrsoldat