Here is my first npm package. Install the package from npm npm i string-sts Import the function import reversestr from "string-sts" Use the function const reversedString = reversestr("string") Output "gnirts"