domhelper.js is a typescript and javascript library for dealing with DOM.
// 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
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
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>
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.