Skip to content

hxsggsz/domhelper.js

Repository files navigation

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/domhelper.js@0.1.0/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.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published