0.12.0 • Published 1 month ago

@musubi/browser-extension-link v0.12.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

@musubi/browser-extension-link

Adapter for using Musubi in browser extension.

Documentation

Full documentation for musubi can be found here.

Installation

# npm
npm install @musubi/browser-extension-link

# Yarn
yarn add @musubi/browser-extension-link

Usage

// Background/service worker script
import { createBrowserExtensionLink } from '@musubi/browser-extension-link';
import { MusubiReceiver } from '@musubi/core';
import { schema } from '../schema';
import * as browser from 'webextension-polyfill';

async function main() {
  const link = createBrowserExtensionLink('background');
  const receiver = new MusubiReceiver(schema, [
    link.receiver,
  ]);

  receiver.handleQuery('getTabs', async () => {
    return browser.tabs.query({});
  });

  console.info('background script ready');
}

main().catch(console.error);
0.11.0

1 month ago

0.12.0

1 month ago

0.10.1

11 months ago

0.10.2

11 months ago

0.10.3

10 months ago

0.10.4

10 months ago

0.10.5

9 months ago

0.9.4

1 year ago

0.9.3

1 year ago

0.9.6

1 year ago

0.10.0

1 year ago

0.9.5

1 year ago

0.9.0

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.8.0

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago