# processing-context

> Globally accessible processing context based on async_hooks

Latest version **1.0.0** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install processing-context
pnpm add processing-context
yarn add processing-context
bun add processing-context
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-10-10 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dmitriy Litichevskiy |
| Maintainers | dmitriy.litichevskiy |
| Keywords | async, context |

## Links

- npm: https://www.npmjs.com/package/processing-context
- Repository: https://github.com/litichevskiydv/processing-context
- Homepage: https://github.com/litichevskiydv/processing-context#readme
- Issues: https://github.com/litichevskiydv/processing-context/issues
- npm.io page: https://npm.io/package/processing-context

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-10-10

## README

# processing-context

[![npm version](https://badge.fury.io/js/processing-context.svg)](https://www.npmjs.com/package/processing-context)
[![npm downloads](https://img.shields.io/npm/dt/processing-context.svg)](https://www.npmjs.com/package/processing-context)
[![dependencies](https://img.shields.io/david/litichevskiydv/processing-context.svg)](https://www.npmjs.com/package/processing-context)
[![dev dependencies](https://img.shields.io/david/dev/litichevskiydv/processing-context.svg)](https://www.npmjs.com/package/processing-context)
[![Build Status](https://travis-ci.org/litichevskiydv/processing-context.svg?branch=master)](https://travis-ci.org/litichevskiydv/processing-context)
[![Coverage Status](https://coveralls.io/repos/github/litichevskiydv/processing-context/badge.svg?branch=master)](https://coveralls.io/github/litichevskiydv/processing-context?branch=master)

Globally accessible processing context based on async_hooks

# Install

`npm i processing-context`

# Usage

```javascript
const processingContext = require("processing-context");
const defaultContext = processingContext.defaultContext;

/*...*/

const key = "counter";
const initialValue = 3;

/*...*/

processingContext.create().set(key, initialValue);
const updatedValue = await new Promise(resolve => resolve(defaultContext.get(key) + 2));
```

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