Closure DOM provides lightweight, Closure Compiler-compatible DOM manipulation utilities for JavaScript. The package (v1.0.0) includes methods like addClass, getDocumentHeight, insert, setOpacity, and others, designed for simple reuse across projects. It has a stable release cadence with infrequent updates. Its key differentiators are compatibility with Google Closure Compiler's advanced optimizations and minimal overhead, making it suitable for compiled applications. Unlike larger libraries, it offers focused, composable functions without dependencies.
npm install closure-domNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using four DOM utility functions: addClass, setOpacity, insert (not shown but imported), and getDocumentHeight.
Use import syntax instead of require().
Import each function by name: import { functionName } from 'closure-dom';Add "type": "module" to package.json or use .mjs extension
Change to: import { addClass } from 'closure-dom';No dependency data recorded yet.