# @toa.io/concise

> Toa Concise Object Schema

Latest version **0.24.0-alpha.0** (published 2023-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @toa.io/concise
pnpm add @toa.io/concise
yarn add @toa.io/concise
bun add @toa.io/concise
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.24.0-alpha.0 |
| Published | 2023-11-16 |
| First published | 2023-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 2 |
| Unpacked size | 32 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Artem Gurtovoi |
| Maintainers | agurtovoi |

## Links

- npm: https://www.npmjs.com/package/@toa.io/concise
- Repository: https://github.com/toa-io/toa
- Homepage: https://toa.io
- Issues: https://github.com/toa-io/toa/issues
- npm.io page: https://npm.io/package/@toa.io/concise

## Dependencies (2)

- [@toa.io/yaml](https://npm.io/package/@toa.io/yaml.md) 0.24.0-alpha.0
- [@toa.io/generic](https://npm.io/package/@toa.io/generic.md) 0.24.0-alpha.0

## Recent versions

- 0.24.0-alpha.0 (latest) — 2023-11-16
- 1.0.0-alpha.272 (alpha) — 2026-09-01
- 0.10.3-alpha.56 (canary) — 2023-05-30
- 0.4.0-dev.9 (dev) — 2023-04-10
- 1.0.0-alpha.254 — 2026-08-11
- 1.0.0-alpha.246 — 2026-08-09
- 1.0.0-alpha.225 — 2026-07-24
- 1.0.0-alpha.224 — 2026-07-24
- 1.0.0-alpha.220 — 2026-07-22
- 1.0.0-alpha.219 — 2026-07-15
- 1.0.0-alpha.208 — 2026-04-26
- 1.0.0-alpha.207 — 2026-04-16
- 1.0.0-alpha.182 — 2025-12-05
- 1.0.0-alpha.173 — 2025-09-16
- 1.0.0-alpha.125 — 2025-01-31
- … 179 more at https://npm.io/package/@toa.io/concise/versions

## README

# Concise Object Schema

Concise Object Schema (COS) is a human-friendly object schema description language.
See [features](features).

## `expand(cos, validate): JSONSchema`

Expand function accepts COS-object as first argument and returns JSONSchema object.

One of the criteria to expand a node is if a node is valid JSONSchema already. As validation
itself is out of the scope of this library, `expand`
requires [JSONSchema meta-schema](https://json-schema.org/specification.html#meta-schemas)
validation function conforming [`toa.cos.Validate`](./types/index.d.ts) type as second argument. To
keep things simple, consider using `expand` of [`@toa.io/schemas`](/libraries/schemas).

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