npm.io
1.0.0 • Published 2 years ago

tai32max32

Licence
ISC
Version
1.0.0
Deps
8
Size
2 kB
Vulns
23
Weekly
0

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