1.0.1 • Published 7 years ago

palindrome-check v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

palindrome-check

A Node.js package that checks whether the given input is a palindrome.

Installation

Install the package using npm:

  npm install palindrome-check --save

Usage

Require the package and use it like so:

  var checkPalindrome = require("palimdrome-check");

  console.log(checkPalindrome("")); // true
  console.log(checkPalindrome("A man, a plan, a canal: Panama."); // true
  console.log(checkPalindrome("not a palindrome")); // false
  console.log(checkPalindrome("tissit, tosi isot tissit.")); // true ;)
  console.log(checkPalindrome(1234567890); // false
  console.log(checkPalindrome(1234321); // true

Tests

  npm test
1.0.1

7 years ago

1.0.0

7 years ago