rescript-schema

所属分类:WEB开发
开发工具:ReScript
文件大小:0KB
下载次数:0
上传日期:2023-11-23 20:53:51
上 传 者sh-1993
说明:  ReScript(和TypeScript)最快的可组合分析器序列化程序
(The fastest composable parser serializer for ReScript (and TypeScript))

文件列表:
.vscode/ (0, 2023-12-08)
.vscode/settings.json (85, 2023-12-08)
CONTRIBUTING.md (1442, 2023-12-08)
IDEAS.md (1574, 2023-12-08)
LICENSE (1072, 2023-12-08)
RescriptSchema.gen.ts (738, 2023-12-08)
bsconfig.json (203, 2023-12-08)
docs/ (0, 2023-12-08)
docs/integration-guide.md (462, 2023-12-08)
docs/js-usage.md (18480, 2023-12-08)
docs/rescript-usage.md (33377, 2023-12-08)
package.json (2444, 2023-12-08)
packages/ (0, 2023-12-08)
packages/prepack/ (0, 2023-12-08)
packages/prepack/package.json (474, 2023-12-08)
packages/prepack/rescript.json (279, 2023-12-08)
packages/prepack/src/ (0, 2023-12-08)
packages/prepack/src/Prepack.bs.mjs (3781, 2023-12-08)
packages/prepack/src/Prepack.res (5483, 2023-12-08)
packages/prepack/src/Prepack.resi (1, 2023-12-08)
packages/rescript-schema-ppx/ (0, 2023-12-08)
packages/rescript-schema-ppx/.vscode/ (0, 2023-12-08)
packages/rescript-schema-ppx/.vscode/settings.json (72, 2023-12-08)
packages/rescript-schema-ppx/bin (464, 2023-12-08)
packages/rescript-schema-ppx/bin.cmd (101, 2023-12-08)
packages/rescript-schema-ppx/install.cjs (1646, 2023-12-08)
packages/rescript-schema-ppx/package.json (810, 2023-12-08)
packages/rescript-schema-ppx/src/ (0, 2023-12-08)
packages/rescript-schema-ppx/src/.ocamlformat (249, 2023-12-08)
packages/rescript-schema-ppx/src/bin/ (0, 2023-12-08)
packages/rescript-schema-ppx/src/bin/bin.ml (46, 2023-12-08)
packages/rescript-schema-ppx/src/bin/dune (115, 2023-12-08)
packages/rescript-schema-ppx/src/dune (15, 2023-12-08)
... ...

[![CI](https://github.com/DZakh/rescript-schema/actions/workflows/ci.yml/badge.svg)](https://github.com/DZakh/rescript-schema/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/DZakh/rescript-schema/branch/main/graph/badge.svg?token=40G6YKKD6J)](https://codecov.io/gh/DZakh/rescript-schema) [![npm](https://img.shields.io/npm/dm/rescript-schema)](https://www.npmjs.com/package/rescript-schema) # ReScript Schema The fastest composable parser/serializer for ReScript (and TypeScript) > Be aware that **rescript-schema** uses `eval` for parsing. It's usually fine but might not work in some environments like Cloudflare Workers or third-party scripts used on pages with the [script-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) header. Highlights: - Combines validation and transformation without a performance loss - Can transform parsed value back to the initial format (serializing) - Works with any Js value, not only `Js.Json.t` - Support for asynchronous transformations - Immutable API with both result and exception-based operations - Easy to create _recursive_ schema - Detailed error messages - Opt-in strict mode for object schema to prevent excessive fields and many more built-in helpers - Opt-in PPX to generate schema from type - Works with plain JavaScript/TypeScript too! You don't need to use ReScript - The **fastest** composable validation library in the entire JavaScript ecosystem ([benchmark](https://moltar.github.io/typescript-runtime-type-benchmarks/)) - Small JS footprint & tree-shakable API ([Comparison with Zod and Valibot](./docs/js-usage.md#comparison)) Also, it has declarative API allowing you to use **rescript-schema** as a building block for other tools, such as: - [rescript-envsafe](https://github.com/DZakh/rescript-envsafe) - Makes sure you don't accidentally deploy apps with missing or invalid environment variables - [rescript-json-schema](https://github.com/DZakh/rescript-json-schema) - Typesafe JSON schema for ReScript - Internal form library at [Carla](https://www.carla.se/) ## Documentation - [For ReScript users](/docs/rescript-usage.md) - [For PPX users](/packages/rescript-schema-ppx/README.md) - [For JS/TS users](/docs/js-usage.md) - [For library maintainers](/docs/integration-guide.md)

近期下载者

相关文件


收藏者