remove-trails
v1.0.0
Published
removing whitespaces at beginning and end
Downloads
2
Readme
String Remove Spaces
A simple JavaScript function to remove leading and trailing spaces from a string.
Installation
npm install string-remove-spaces
Usage
const removeSpaces = require('string-remove-spaces');
const inputString = " Hello, World! ";
const result = removeSpaces(inputString);
console.log(result); // Output: "Hello, World!"
Example
const removeSpaces = require('remove-trail');
const inputString = " This is an example. ";
const result = removeSpaces(inputString);
console.log(result); // Output: "This is an example."
Feel free to use and modify the code as needed. If you encounter any issues or have suggestions for improvement, please create an issue on the GitHub repository. Contributions are welcome!