0.1.26 • Published 2 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
2 years ago
0.1.21
2 years ago
0.1.22
2 years ago
0.1.23
2 years ago
0.1.24
2 years ago
0.1.25
2 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.17
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.2
3 years ago
0.1.3
3 years ago
0.1.0
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago