JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q28466F
  • License MIT

Charged URI syntax, URI Charge Notation, schema processor

Package Exports

  • churi
  • churi/compiler.js
  • churi/deserializer.js
  • churi/deserializer/defaults.js
  • churi/deserializer/meta.js
  • churi/serializer.js
  • churi/validator.js

Readme

Charged URI and URI Charge

NPM Build Status Code Quality Coverage GitHub Project API Documentation

Charged URI (ChURI) may include arbitrary structured data. The data is encoded with URI 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-only URL class that grants access to charges.
  • URI charging utilities.
  • URI Charge Notation support:
    • Schema-based parser, serializer, and validator.
    • Schema-less parser and serializer.