New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

chrome-async

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-async

An async wrapper for chrome.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

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)
);

Keywords

chrome

FAQs

Package last updated on 11 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts