https://github.com/node-modules/gals
global AsyncLocalStorage
https://github.com/node-modules/gals
Last synced: 14 days ago
JSON representation
global AsyncLocalStorage
- Host: GitHub
- URL: https://github.com/node-modules/gals
- Owner: node-modules
- License: mit
- Created: 2023-12-19T16:10:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-31T04:09:34.000Z (over 1 year ago)
- Last Synced: 2025-05-25T00:59:45.150Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gals
[![NPM version][npm-image]][npm-url]
[](https://github.com/node-modules/gals/actions/workflows/nodejs.yml)
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/gals.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gals
[codecov-image]: https://codecov.io/github/node-modules/gals/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/node-modules/gals?branch=master
[download-image]: https://img.shields.io/npm/dm/gals.svg?style=flat-square
[download-url]: https://npmjs.org/package/galsglobal AsyncLocalStorage
## Install
```bash
npm install gals
```## Usage
```ts
import { getAsyncLocalStorage } from 'gals';const asyncLocalStorage = getAsyncLocalStorage();
const store = asyncLocalStorage.getStore();
```## License
[MIT](LICENSE.txt)
## Contributors
|[
fengmk2](https://github.com/fengmk2)
|
| :---: |This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed Dec 20 2023 00:17:19 GMT+0800`.