mvc-string-reverse
v1.0.0
Published
This is a simple Node.js package that provides a function to reverse a string using the Model-View-Controller (MVC) pattern.
Downloads
2
Readme
MVC String Reverse
This is a simple Node.js package that provides a function to reverse a string using the Model-View-Controller (MVC) pattern.
Installation
You can install this package via npm. Make sure you have Node.js installed on your machine.
npm install mvc-string-reverse
Usage
Here's how you can use the reverseString function provided by this package:
const { reverseString } = require('mvc-string-reverse');
reverseString('Hello, world!');
// Output: Reversed String: !dlrow ,olleH
API
reverseString(input: string): void
This function takes a string as input and logs the reversed string to the console.