0.0.1 • Published 6 years ago

event-positions v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Event Positions

This is a small library used to determining the the positions that events happened at in code views.

Installation

npm i event-positions

Usage

It is currently exposed as an RxJs Operator

import { findPositionsFromEvents } from "event-positions";

observableOfDomElements
  .pipe(
    findPositionsFromEvents({
      ...props
    })
  )
  .subscribe(positionEvent => console.log(positionEvent)); // { line: ..., character: ..., token: ... }