yot-rev
v1.0.0
Published
A simple utility to reverse strings
Readme
strrev
A minimal and efficient npm package to reverse strings in JavaScript and TypeScript.
strrev is a simple utility function that takes a string and returns its reverse. Built with TypeScript, lightweight, and easy to use in any project.
📦 Installation
npm install strrev🔧 Usage
JavaScript
import { reverse } from 'strrev';
console.log(reverse('hello')); // "olleh"TypeScript
import { reverse } from 'strrev';
const result: string = reverse('world');
console.log(result); // "dlrow"Why use strrev?
- ✅ Written in TypeScript
- ✅ Lightweight and dependency-free
- ✅ Works in both Node.js and browser environments
Testing Locally (Optional)
git clone https://github.com/yourusername/strrev.git
cd strrev
npm install
npm run build
node dist/index.jsPublish
After building:
npm publishLicense
This project is licensed under the MIT License.
Author
Made with precision by Utkarsh
