1.0.4 • Published 5 months ago

domhelper.js v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.1

6 months ago