tai32max32
v1.0.0
Published
This Node.js module contains a collection of interesting functions for various purposes.
Downloads
3
Readme
tai32max32
This Node.js module contains a collection of interesting functions for various purposes.
Functions Included:
- fibonacci(n): Calculates the nth Fibonacci number.
- isPalindrome(str): Checks if a given string is a palindrome.
- 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