1.0.0 • Published 1 year ago

remove-trails v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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!

Authors

License

MIT License

1.0.0

1 year ago