1.0.0 • Published 1 year ago

tai32max32 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

tai32max32

This Node.js module contains a collection of interesting functions for various purposes.

Functions Included:

  1. fibonacci(n): Calculates the nth Fibonacci number.
  2. isPalindrome(str): Checks if a given string is a palindrome.
  3. generateRandomString(length): Generates a random alphanumeric string of a specified length.

Installation

To use this module in your Node.js project, you can install it via npm: npm install tai32max32

Usage

const { fibonacci, isPalindrome, generateRandomString } = require('interesting-functions');

console.log(fibonacci(10)); // Output: 55
console.log(isPalindrome('A man, a plan, a canal, Panama')); // Output: true
console.log(generateRandomString(8)); // Output: Random alphanumeric string of length 8