{"library":"wordwrapjs","type":"library","category":null,"description":"wordwrapjs is a lightweight and versatile JavaScript library designed for word-wrapping plain text within specified column widths. Currently at version 5.1.1, it provides a stable and efficient solution for text formatting across various JavaScript environments. The library supports Node.js (both CommonJS and ECMAScript Modules), modern web browsers (via ESM imports), and older browser environments (via a global `window.wordwrapjs` object), enabling broad compatibility without requiring transpilation. Its API offers methods to wrap text into a single string or an array of lines, with options to force long words to break and control line trimming. The project emphasizes plain text processing, focusing on core word-wrapping logic rather than rich text features. Releases appear stable, with infrequent major version bumps, indicating a mature and well-tested codebase.","language":"javascript","status":"active","version":"5.1.1","tags":["javascript","word","line","wrap","text","columns","wordwrap"],"last_verified":"Wed May 27","install":[{"cmd":"npm install wordwrapjs","imports":["import wordwrap from 'wordwrapjs'","const wordwrap = require('wordwrapjs')","import type { WordwrapOptions } from 'wordwrapjs'"]},{"cmd":"yarn add wordwrapjs","imports":[]},{"cmd":"pnpm add wordwrapjs","imports":[]}],"homepage":null,"github":"https://github.com/75lb/wordwrapjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/wordwrapjs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/wordwrapjs/compatibility"}}