# chrome-zones

> browser module to wrap chrome extension apis so that if they are executing in a zone, their callbacks do too

Latest version **0.1.0** (published 2016-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-zones
pnpm add chrome-zones
yarn add chrome-zones
bun add chrome-zones
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-07-03 |
| First published | 2016-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Greenier |
| Maintainers | b3ngr33ni3r |

## Links

- npm: https://www.npmjs.com/package/chrome-zones
- Repository: https://github.com/bengreenier/chrome-zones
- Homepage: https://github.com/bengreenier/chrome-zones#readme
- Issues: https://github.com/bengreenier/chrome-zones/issues
- npm.io page: https://npm.io/package/chrome-zones

## Dependencies (1)

- [zone.js](https://npm.io/package/zone.js.md) ^0.6.12

## Recent versions

- 0.1.0 (latest) — 2016-07-03

## README

# chrome-zones

[![Build Status](https://travis-ci.org/bengreenier/chrome-zones.svg?branch=master)](https://travis-ci.org/bengreenier/chrome-zones)

wraps chrome extension apis so that if they are executing in a zone, their callbacks do too

# Why?

If, for instance, you wish to use angular2 in a chrome extension, and want to change
renderable/injectable/etc values from within a chrome extension api callback.

# How?

## Do i use it?

> `npm install chrome-zones` is the easiest.

If npm is too heavy for you, grab a built version [from this repo](./dist). Note
that you'll also need [angular/zone.js](https://github.com/angular/zone.js) included
in your page.

### Example

See [example](./example) for a complete working example.

## Does it work?

Using monkeypatching and `zone.wrap`. Basically when the script loads
it patches the entire `chrome.<whatever>` api space such that all
functions that are called have their last argument (if it is a function)
patched with `zone.wrap`.

# License

MIT

---
_Source: https://npm.io/package/chrome-zones · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
