# epdoc-util

> Typescript-aware guard tests and other standalone utilities

Latest version **0.5.1** (published 2023-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install epdoc-util
pnpm add epdoc-util
yarn add epdoc-util
bun add epdoc-util
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2023-11-04 |
| First published | 2019-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 74.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Pravetz |
| Maintainers | jpravetz |
| Keywords | util, typescript |

## Links

- npm: https://www.npmjs.com/package/epdoc-util
- Repository: https://github.com/jpravetz/epdoc-util
- Homepage: https://github.com/jpravetz/epdoc-util#readme
- Issues: https://github.com/jpravetz/epdoc-util/issues
- npm.io page: https://npm.io/package/epdoc-util

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.5.1 (latest) — 2023-11-04
- 0.5.0 — 2023-11-04
- 0.4.0 — 2023-11-03
- 0.3.0 — 2023-11-03
- 0.2.9 — 2023-10-31
- 0.2.8 — 2023-10-31
- 0.2.7 — 2023-10-27
- 0.2.6 — 2023-10-14
- 0.2.5 — 2023-10-06
- 0.2.4 — 2023-10-05
- 0.2.3 — 2023-10-05
- 0.2.1 — 2023-10-03
- 0.2.0 — 2023-10-02
- 0.1.17 — 2023-09-20
- 0.1.16 — 2020-08-10
- … 10 more at https://npm.io/package/epdoc-util/versions

## README

# epdoc-util

Typescript utilities, mostly for type checking, with type-guards.

```ts
import { isBoolean } from 'epdoc-util';

if (isBoolean(value)) {
  doTask();
}
```

```ts
import { object as test } from 'epdoc-util';

let obj = { a: { b: 3 } };
test(obj)
  .property('a.b')
  .value(); // returns 3

u.path('a.c').setValue({}, 4); // results in { a: { c: 4 }}

test(obj)
  .property('a.b')
  .isInteger(); // returns true
```

## Build

```bash
npm run clean
npm run build
npm run test
```

## Publish

```bash
npm publish
```

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