# @zcloak/ctype

> zCloak ctype package

Latest version **2.0.3** (published 2024-01-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @zcloak/ctype
pnpm add @zcloak/ctype
yarn add @zcloak/ctype
bun add @zcloak/ctype
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2024-01-12 |
| First published | 2022-11-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 24.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | zCloak |
| Maintainers | whgreate, xiao_zcloak, han3321 |

## Links

- npm: https://www.npmjs.com/package/@zcloak/ctype
- Repository: https://github.com/zCloak-Network/zkid-sdk
- Homepage: https://github.com/zCloak-Network/zkid-sdk/tree/master/protocol/ctype#readme
- Issues: https://github.com/zCloak-Network/zkid-sdk/issues
- npm.io page: https://npm.io/package/@zcloak/ctype

## Dependencies (5)

- [jsonschema](https://npm.io/package/jsonschema.md) ^1.4.1
- [@zcloak/did](https://npm.io/package/@zcloak/did.md) 2.0.3
- [@polkadot/util](https://npm.io/package/@polkadot/util.md) ^12.1.2
- [@zcloak/crypto](https://npm.io/package/@zcloak/crypto.md) 2.0.0
- [@zcloak/did-resolver](https://npm.io/package/@zcloak/did-resolver.md) 2.0.0

## Recent versions

- 2.0.3 (latest) — 2024-01-12
- 1.0.0-beta.2 (beta) — 2023-02-17
- 2.0.2 — 2023-10-17
- 2.0.1 — 2023-09-18
- 2.0.0 — 2023-09-05
- 1.3.0 — 2023-05-25
- 1.2.11 — 2023-05-16
- 1.2.10 — 2023-05-12
- 1.2.9 — 2023-05-11
- 1.2.8 — 2023-05-04
- 1.2.7 — 2023-04-22
- 1.2.6 — 2023-04-22
- 1.2.5 — 2023-04-13
- 1.2.4 — 2023-04-13
- 1.2.3 — 2023-03-18
- … 35 more at https://npm.io/package/@zcloak/ctype/versions

## README

# @zcloak/ctype

CType(Credential Type) defines a way to verify the credential subject(claims) data type, which is based on [json-schema](https://json-schema.org) for validation.


## Usage

Installation -

```
yarn add @zcloak/ctype
```

Functions can be imported as follows:

```js
import { validateSubject, validateSubjectPartial } from '@zcloak/ctype';
```

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