Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Automatically breaks long words. https://www.npmjs.com/package/smartwrap
-
Updated
Jun 21, 2024 - JavaScript
Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Automatically breaks long words. https://www.npmjs.com/package/smartwrap
Native Canvas API does not have a method to wrap text onto the next line when a desired maximum width is reached. This library solves that problem and adds a few additional capabilities
Add a description, image, and links to the textwrap topic page so that developers can more easily learn about it.
To associate your repository with the textwrap topic, visit your repo's landing page and select "manage topics."