Word-wrap is a lightweight npm package designed to wrap text to a specified length helping developers enhance the readability and formatting of text within applications. Versions 1.0.2 and 1.0.3 share the same core functionality and maintain similar development dependencies, relying on Mocha for testing and Should.js for assertions. Both versions are MIT licensed, ensuring flexibility for use in various projects, and are authored by Jon Schlinkert. The source code can be accessed through the provided Git repository.
The key difference between these two versions lies in their release dates and potentially underlying bug fixes or minor enhancements. Version 1.0.2 was released on March 7, 2015, while version 1.0.3 followed on April 20, 2015. While the description remains unchanged, the updated version signals ongoing maintenance and refinement of the package. For developers, utilising the latest 1.0.3 version ensures access to the most current iteration which may include improved stability or edge-case handling. The package provides a simple and effective solution for enforcing consistent text formatting making it a valuable utility for command-line tools, documentation generators, and any other application requiring text wrapping. The consistent API ensures developers can seamlessly upgrade to the newer patch version with minimal disruption.
All the vulnerabilities related to the version 1.0.3 of the package
word-wrap vulnerable to Regular Expression Denial of Service
All versions of the package word-wrap are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.