@sourcegraph/event-positions
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    Event Positions

    build codecov code style: prettier semantic-release

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

    Installation

    npm install @sourcegraph/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: ... }

    Keywords

    none

    Install

    npm i @sourcegraph/event-positions

    DownloadsWeekly Downloads

    228

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    46.7 kB

    Total Files

    17

    Last publish

    Collaborators

    • roksg
    • 5h1ru
    • sourcegraph-bot
    • sqs
    • beyang
    • nicksnyder
    • felixfbecker
    • slimsag
    • attfarhan
    • dadlerj
    • ggilmore
    • keegancsmith
    • vanesa-
    • lguychard
    • efritz
    • garosrc