# @serverless-devs/utils

> utils for serverless-devs

Latest version **0.0.17** (published 2025-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @serverless-devs/utils
pnpm add @serverless-devs/utils
yarn add @serverless-devs/utils
bun add @serverless-devs/utils
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: has types; no vulnerabilities.

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.0.17 |
| Published | 2025-02-10 |
| First published | 2023-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 49.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xsahxl |
| Maintainers | serverlessfans, heimanba, xsahxl |

## Links

- npm: https://www.npmjs.com/package/@serverless-devs/utils
- Repository: https://github.com/Serverless-Devs/toolkit
- Homepage: https://github.com/Serverless-Devs/toolkit#readme
- Issues: https://github.com/Serverless-Devs/toolkit/issues
- npm.io page: https://npm.io/package/@serverless-devs/utils

## Dependencies (5)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [random-string](https://npm.io/package/random-string.md) ^0.2.0

## Recent versions

- 0.0.17 (latest) — 2025-02-10
- 0.0.18 (beta) — 2025-02-10
- 0.0.16 — 2024-08-23
- 0.0.16-beta.2 — 2024-08-12
- 0.0.16-beta.1 — 2024-07-12
- 0.0.15 — 2024-04-17
- 0.0.14 — 2023-11-17
- 0.0.13 — 2023-11-17
- 0.0.12 — 2023-11-17
- 0.0.11 — 2023-11-16
- 0.0.10 — 2023-10-19
- 0.0.9 — 2023-09-26
- 0.0.8 — 2023-09-12
- 0.0.8-beta.18 — 2023-08-30
- 0.0.8-beta.17 — 2023-08-22
- … 23 more at https://npm.io/package/@serverless-devs/utils/versions

## README

## Exception
![](https://img.alicdn.com/imgextra/i4/O1CN01u9MGdL27uYklpE0BP_!!6000000007857-0-tps-1948-866.jpg)
- ApiException
Api 异常
```
{
	code: 200,
	type: "api",
	requestId: '',
	content: "",
}
```
- CheckedException
编译时异常，是在编译时就可以被捕获的异常
```
{
	type: "checked",
	content: "",
}
```

- UncaughtException
编译时异常，是在编译时就可以被捕获的异常
```
{
	type: "uncaught",
	content: "",
}
```

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