# kigo-context

> thrad-local-store

Latest version **1.1.0** (published 2023-07-26) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-07-26 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 30.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kigo |
| Maintainers | kigolive |

## Links

- npm: https://www.npmjs.com/package/kigo-context
- npm.io page: https://npm.io/package/kigo-context

## Dependencies (3)

- [kigo-logger](https://npm.io/package/kigo-logger.md) ^1.0.0
- [async-listener](https://npm.io/package/async-listener.md) ^0.6.8
- [emitter-listener](https://npm.io/package/emitter-listener.md) ^1.1.1

## Recent versions

- 1.1.0 (latest) — 2023-07-26

## README

## 安装

```bash
$ cnpm i kigo-context --save-dev
```

## 用法
```js
var Context=require('kigo-context');
Context.set("name","jack");
Context.runWithContext(()=>
{
    Context.set("name","kitty");
    setTimeout(function() {
        console.log(Context.get('name'));
    }, 10);
})

常用函数
Context.setTransition(transition);
Context.setTenancy(tenancy);
Context.setSession(session);

Context.getTransition();
Context.getTenancy();
Context.getSession();

```

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