# @midwayjs/simple-lock

> ## sureOnce

Latest version **1.2.2** (published 2022-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @midwayjs/simple-lock
pnpm add @midwayjs/simple-lock
yarn add @midwayjs/simple-lock
bun add @midwayjs/simple-lock
```

## 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.2.2 |
| Published | 2022-03-09 |
| First published | 2019-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 0 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mariodu, czy88840616, legendecas, echosoar, lellansin, lxxyx, stone-jin |

## Links

- npm: https://www.npmjs.com/package/@midwayjs/simple-lock
- Repository: https://github.com/midwayjs/simple-lock
- Homepage: https://github.com/midwayjs/simple-lock#readme
- Issues: https://github.com/midwayjs/simple-lock/issues
- npm.io page: https://npm.io/package/@midwayjs/simple-lock

## Recent versions

- 1.2.2 (latest) — 2022-03-09
- 1.0.6-alpha.523 (canary) — 2020-07-12
- 0.2.89 (beta) — 2020-04-28
- 1.2.1 — 2022-03-04
- 1.2.0 — 2022-03-01
- 1.1.4 — 2020-07-24
- 1.0.7 — 2020-07-14
- 1.0.1 — 2020-07-06
- 1.0.0 — 2020-07-02
- 0.3.0 — 2020-05-26
- 0.2.97 — 2020-05-16
- 0.2.95 — 2020-05-15
- 0.2.88 — 2020-04-26
- 0.2.76 — 2020-04-16
- 0.2.75 — 2020-04-15
- … 16 more at https://npm.io/package/@midwayjs/simple-lock/versions

## README

# simple lock

## sureOnce

* fn execute only once


## acquire

* just lock, fn executed by array

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