A full version history of the clean-regexp package with size, number of distributed files and dependency evolution.
clean-regexp is an npm package designed to enhance the readability and efficiency of JavaScript regular expressions. The initial and currently only version, 1.0.0, released on August 11, 2017, focuses on cleaning up and optimizing regular expression patterns. This involves removing unnecessary characters, simplifying complex expressions where possible, and ensuring the regex is as performant as it can be.
This tool relies on the escape-string-regexp package as a dependency, ensuring proper escaping of special characters within regular expressions to prevent unexpected behavior. For development and testing, ava provides a streamlined testing framework, while xo is used for code linting, ensuring code quality and adherence to style guidelines.
The package is licensed under the MIT license, promoting open-source usage and modification. Developed by Sam Verschueren, clean-regexp is hosted on GitHub, providing a platform for collaboration and issue tracking. The package is readily available on npm, facilitating easy installation and integration into JavaScript projects. While being only a single version, it highlights a dedication to providing a tool that developers can utilize to ensure their Regular Expressions are lean and mean.