0.1.26 • Published 3 years ago
@zodash/crypto v0.1.26
schema
Object schema description language and validator for JavaScript objects, inspired by hapijs/joi and hh54188/schemaor. It is written fully with Typescript.
- 🕒 Familiar
joi
API & patterns - 💪 Node and Browser Support
- 🔥 Chainable
- :sparkle: TypeScript
- 🌐 I18n support (WIP)
- 🔌 Plugin System (WIP)
Install
$ npm install @zcorky/schema
Usage
import * as Types from '@zcorky/schema';
const user = new Types.object({
id: new Types.string().require(),
nickname: new Types.string().require(),
homepage: new Types.string(),
age: new Types.number(),
active: new Types.boolean(),
});
const validatedData = Types.validate(user, {
id: '1',
nickname: 'whatwewant',
active: true,
});
API
- See the detailed API Reference.
Relatived
- joi - Object schema description language and validator for JavaScript objects..
- schemaor
- ajv -The fastest JSON Schema validator for Node.js and browser.
License
MIT © Moeover
0.1.26
3 years ago
0.1.21
4 years ago
0.1.22
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.25
3 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.18
4 years ago
0.1.15
4 years ago
0.1.16
4 years ago
0.1.17
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.2
5 years ago
0.1.3
5 years ago
0.1.0
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago