{"library":"docx4js","type":"library","category":null,"description":"docx4js is a JavaScript library designed for parsing and manipulating Microsoft Word (.docx) and PowerPoint (.pptx) files. The current stable version is 3.3.0, though the project's major releases have a less frequent cadence, with the latest stable version published two years ago. It supports both Node.js and browser environments. A key differentiator is its performance-oriented parsing strategy: it traverses document content and identifies OpenXML models using a visitor pattern, rather than building and retaining a full in-memory parsed structure. This approach aims for lower memory consumption, making it suitable for environments where memory is a concern. Users can define custom handlers to extract specific content, styles, or attributes from the document, allowing for flexible data extraction tailored to application needs. While initially focused on DOCX, it gained PPTX support in version 3.1.30. It primarily serves use cases requiring content extraction, transformation, or minor modification of Office OpenXML documents.","language":"javascript","status":"maintenance","version":"3.3.0","tags":["javascript","docx","pptx","zip docx","parser"],"last_verified":"Wed May 27","install":[{"cmd":"npm install docx4js","imports":["import docx4js from 'docx4js';","import ModelHandler from 'docx4js/lib/openxml/docx/model-handler';","docx4js.load(fileOrBlob);"]},{"cmd":"yarn add docx4js","imports":[]},{"cmd":"pnpm add docx4js","imports":[]}],"homepage":null,"github":"https://github.com/lalalic/docx4js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/docx4js","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/docx4js/compatibility"}}