0.1.3 • Published 4 years ago

chrome-async v0.1.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

chrome-async

An async wrapper for chrome. Useful when developing a chrome extension.

Installing

npm i chrome-async

Usage

Wrap chrome call with the chromeAsync function and pass callback argument as the call parameter:

import chromeAsync from 'chrome-async';

const tab = await chromeAsync<chrome.tabs.Tab>((callback) =>
  chrome.tabs.create({ url: 'about:blank', active: true }, callback)
);
0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

6 years ago

0.0.1

6 years ago