Special Thanks
InDom is hosted and distributed thanks to:
GitHub
– repository hosting
npm
– package registry
jsDelivr
and
unpkg
– global CDN delivery
Can I use?
- browser support features
We appreciate their free services for open-source projects.
Next:
Getting Started »
Getting Started
API
getOne
get
getById
new InDom
onReady
getValue
getValues
setValue
on
onRemove
off
getElement
remove
is
getParent
getSelfOrParent
getNext
getPrev
append
prepend
after
before
setHtml
getHtml
setData
getData
hasData
removeData
setAttr
getAttr
hasAttr
removeAttr
getBox
getOuterBox
getRelativeBox
getOffsetBox
addClass
hasClass
removeClass
setStyle
getStyle
Array inherited methods
each
filter
Usage Info
Additional Topics
discuss InDom on GitHub
view InDom on npm
view InDom on GitHub
scroll top
Modern DOM Power
for TypeScript, ESM & Plain JS
3.8KB JavaScript library that simplifies DOM manipulation
with a clean, chainable API for events, data, inputs harvesting, and more.
Automatic Cleanup,
Leak-Proof by Design
Events and state are cleared when elements leave the DOM,
even if removal happens outside InDom.
Cleaner Code,
Better Ergonomics
Get the InDom object directly in callbacks.
One element, one instance.
Works With Your Existing Stack
Use InDom on its own or alongside any library or framework,
its architecture ensures a seamless integration.