@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: ... }

Readme

Keywords

none

Package Sidebar

Install

npm i @sourcegraph/event-positions

Weekly Downloads

9

Version

1.0.4

License

MIT

Unpacked Size

46.7 kB

Total Files

17

Last publish

Collaborators

  • techopsadmin
  • andreeleuterio
  • sourcegraph-bot
  • sqs
  • beyang
  • slimsag