Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskelton/observer
A super simple and performant way to observer specific selectors in the DOM.
https://github.com/mskelton/observer
dom observer
Last synced: 17 days ago
JSON representation
A super simple and performant way to observer specific selectors in the DOM.
- Host: GitHub
- URL: https://github.com/mskelton/observer
- Owner: mskelton
- License: isc
- Created: 2023-03-11T03:13:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T04:39:05.000Z (over 1 year ago)
- Last Synced: 2024-10-18T08:17:48.366Z (3 months ago)
- Topics: dom, observer
- Language: TypeScript
- Homepage: https://npm.im/@mskelton/observer
- Size: 947 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @mskelton/observer
[![Build status](https://github.com/mskelton/observer/workflows/Build/badge.svg)](https://github.com/mskelton/observer/actions)
## Installation
### npm
```bash
npm install @mskelton/observer
```### Yarn
```bash
yarn add @mskelton/observer
```### pnpm
```bash
pnpm add @mskelton/observer
```## Usage
```javascript
import { observe } from "@mskelton/observer"observe(".my-selector", (el) => {
// ...
})
```