element-util

The utility library that provides convenience for using HTML Element.

Usage no npm install needed!

<script type="module">
  import elementUtil from 'https://cdn.skypack.dev/element-util';
</script>

README

ElementUtil

Node.js CI npm version Downloads

The javascript library for using DOM Elements conveniently.

Install

npm install element-util

Usage

import * as ElementUtil from 'element-util';

const elm = ElementUtil.getElement('#app');

// --- or ---
import { addListener } from 'element-util';

addListener('ul > li', 'click', () => console.log('item clicked!'));

Please see ElementUtil API.

Change Log

CHANGELOG.md

license

MIT License