uri-escapify
v1.0.0
Published
A lightweight URI escaping utility library providing `escape` and `unescape` functionality.
Maintainers
Readme
uri-escapify
A lightweight URI escaping utility library providing
escapeandunescapefunctionality.
Documentation
For detailed usage instructions and API references, please visit the official documentation:
Quick Start
Basic Usage
import { escape, unescape } from 'uri-escapify';
// Basic encoding
console.log(escape('hello world')); // Outputs "hello%20world"
// Chinese encoding
console.log(escape('中文@示例')); // Outputs "%E4%B8%AD%E6%96%87%40%E7%A4%BA%E4%BE%8B"
// Reserved characters preservation
console.log(escape("!-._~'()*")); // Outputs original string
// Decoding operation
console.log(unescape("%E4%B8%AD%E6%96%87")); // Outputs "中文"Contributing
We welcome contributions from the community! If you find a bug or want to suggest an improvement, feel free to open an issue or submit a pull request.
How to Contribute
- Fork the repository.
- Create a new branch for your changes.
- Submit a pull request with a clear description of your changes.
License
This project is licensed under the MIT License.
Browser Support
|
|
|
|
|
--- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |

