Skip to content

Latest commit

 

History

History
executable file
·
58 lines (38 loc) · 1.96 KB

README.md

File metadata and controls

executable file
·
58 lines (38 loc) · 1.96 KB

@extend-chrome/events-rxjs logo

@extend-chrome/events-rxjs

npm (scoped) GitHub last commit License TypeScript Declarations Included

ko-fi Chrome Extension Tutorials on YouTube


RxJS Observables for Chrome API events

Table of Contents

Getting started

You will need to use a bundler like Rollup, Parcel, or Webpack to include this library in the build of Chrome extension.

See rollup-plugin-chrome-extension for an easy way use Rollup to build your Chrome extension!

Installation

npm i @extend-chrome/events-rxjs

Usage

import { contextMenus } from '@extend-chrome/events-rxjs'

contextMenus.clickStream.subscribe((clickEvent) => {
  console.log('click', clickEvent)
})