npm.io
2.0.3 • Published 2 years ago

@zcloak/ctype

Licence
Apache-2.0
Version
2.0.3
Deps
5
Size
24 kB
Vulns
0
Weekly
0
Stars
12

@zcloak/ctype

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

Usage

Installation -

yarn add @zcloak/ctype

Functions can be imported as follows:

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