1.0.1 • Published 1 year ago

lifechangeeee1 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

lifechangeeee1

lifechangeeee1 is a simple JavaScript package containing utility functions for common tasks.

Installation

You can install lifechangeeee1 via npm:

npm install lifechangeeee1

Usage

const { reverseString, capitalizeWords, isEven, factorial } = require('lifechangeeee1');

console.log(reverseString('hello')); // Output: 'olleh'
console.log(capitalizeWords('hello world')); // Output: 'Hello World'
console.log(isEven(5)); // Output: false
console.log(factorial(5)); // Output: 120

Functions

reverseString(str: string): string

Reverses the input string.

capitalizeWords(str: string): string

Capitalizes the first letter of each word in the input string.

isEven(num: number): boolean

Checks if the input number is even.

factorial(num: number): number

Calculates the factorial of the input number.

License

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

1.0.1

1 year ago

1.0.0

1 year ago