Rollup-plugin-cleanup version 0.1.0 is a Rollup plugin designed to enhance code readability and consistency by automatically cleaning up JavaScript and other text-based files during the bundling process. Its core functionalities include trimming trailing spaces from lines, compacting multiple consecutive empty lines into single ones, and normalizing line endings to a consistent format, tackling common code style inconsistencies. This initial version depends on magic-string for efficient and accurate string manipulation and rollup-pluginutils for seamless integration with Rollup.
The developer tooling includes eslint for code linting, expect for writing assertions in tests, mocha as the test framework, rollup itself, and rollup-plugin-buble which may indicate usage or testing of ES2015+ code transpilation. It's licensed under the permissive MIT license, encouraging wide adoption and modification. The package targets developers who want to improve the aesthetic appeal and maintainability of their code by automating tedious cleanup tasks. The absence of information of the previous stable version restricts the summary to talk about differences. The available release landed on September 5, 2016, offering a relatively early solution for code cleanup within the Rollup ecosystem. It is designed to be easily integrated into existing Rollup configurations, minimizing the friction for developers to incorporate code cleanup into their workflows.
The are not vulnerabilities for the version 0.1.0 of the package rollup-plugin-cleanup