Dompack
@ebhare/dompack
is the base browser library used by WebHare used to fill some missing browser functionality and provide central registries for other code. All
frontend libraries provided by WebHare use the dompack APIs
Legacy version
WebHare ships a 'legacy' version of dompack (provided under the import name dompack
) for use in existing applications. This library lacks some modern TypeScript
APis and offers some APIs that are since implemented in browsers directly (eg. toggleClass
and after
). You should switch to @webhare/dompack
for new application
development especially if you intend to use TypeScript (.ts
) instead of plain JavaScript/ECMAScript (eg .js
and .es
extensions)