femisqi-palindrome
v1.0.3
Published
A NodeJS application that checks if a string is a palindrome
Downloads
14
Maintainers
Readme
Palindrome Checks
A simple Node.js application that checks if a string is a palindrome.
Installation
npm install femisqi-palindromeUsage
const pali = require('femisqi-palindrome');
console.log(pali('racecar')); // Output: racecar is a palindrome
console.log(pali('hello')); // Output: hello is not a palindromeAPI
pali(testString)
- testString (
string): The string to check. - Returns:
string— A message indicating whether the input is a palindrome.
Running the Server
This package also starts an Express server on port 3400 by default:
node index.jsLicense
ISC
Author
Oluwafemi John, Oyeniran
