Palindrome is a Word, Phrase or Number or even sequence of characters which when read the same backward is the same as when read forward.
This package generates a palindrome for a given string. If the given string is a palindrome itself then it will be sending back the same string
View in github
View in npm
npm i generate-palindrome
var generate=require('generate-palindrome');
var s=""; // string whose palindrome needs to be generated
console.log(generate(s));