domhelper.js
v1.0.4
Published
wrapper to manipulate DOM elements for javascript and typescript build with typescript
Downloads
25
Readme
domhelper.js
domhelper.js is a typescript and javascript library for dealing with DOM.
Installation
use directly on HTML
// HTML
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/domhelper.js"></script>
// js
const test = new Select().where("id").equals("test").getResult()
or
use modules
npm install domhelper.js
yarn add domhelper.js
pnpm add domhelper.js
import { Select } from "domhelper.js"
const counter = new Select().where("id").equals("app").getResult()
you can see more examples here
Troubleshooting
if you face wit this error on console
error on console reference error exports is not defined
add this line as your first script on html
<script>
const exports = {}
</script>
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.