# strip-dom-whitespace **Repository Path**: mirrors_developit/strip-dom-whitespace ## Basic Information - **Project Name**: strip-dom-whitespace - **Description**: Traverses the DOM to strip whitespace-only Text nodes - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # strip-dom-whitespace Traverses the DOM to strip whitespace-only Text nodes. This is a standalone solution to [developit/preact#445](https://github.com/developit/preact/issues/445). ### Usage ```js import strip from 'strip-dom-whitespace'; strip(document.body); ``` ```js var strip = require('strip-dom-whitespace'); strip(document.querySelector('.some-element')); ``` ### License MIT