Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
/churiPublic archive

Multi-format schema-based serializer, deserializer and validator. Charged URI syntax. URI Charge Notation

License

NotificationsYou must be signed in to change notification settings

UCNot/churi

Repository files navigation

NPMBuild StatusCode QualityCoverageGitHub ProjectAPI Documentation

ChURI is a polyglot serializer, deserializer and validator supporting various data formats.

The data processing is based on data schemas. Schemas are written in TypeScript. ChURI compiles such schemas intoefficient code implementing serializers, deserializers, and validators for the data conforming to those schemas.

The core data format encodes the data withURI Charge Notation. It is designed to pass structured data inside URI.Such URI is called Charged URI, or just ChURI.

Other data formats supported out of the box:

  • JSON
  • application/x-www-form-urlencoded (URI query parameters)
  • URL-encoded
  • plain text

Some formats supportinsets containing data in another formats. For example, theapplication/x-www-form-urlencodedformat allows query parameter values to be encoded as URL-encoded ones, as plain text, or as URI Charge. The choiceis made by data schema.

Charged URI and URI Charge

Charged URI (ChURI) may include arbitrary structured data. The data is encoded withURI Charge Notation.

It is like JSON for GET requests, but may include even more:

https://example.com/!v(3)api/user;id=0n302875106592253/article;slug=hello-world/comments?date=since(!date'1970-01-01)till(!now)&range=from(10)to(20)

See the explanation >>>

Read more about URI Charge Notation >>>

This Package

This package provides:

  • ChURI class, which is a read-onlyURL class that grants access to charges.
  • URIcharging utilities.
  • Schema-based parser, serializer, and validator.
  • URI Charge Notation support
  • JSON support.
  • application/x-www-form-urlencoded format support.
  • Other formats support, such as plain text and URI-encoded values.

About

Multi-format schema-based serializer, deserializer and validator. Charged URI syntax. URI Charge Notation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp