Vega Schema URL Parser
JSON →The `vega-schema-url-parser` package provides a utility function designed to extract the library type (either "vega" or "vega-lite") and its corresponding version number from a given Vega or Vega-Lite JSON schema URL. This functionality is crucial for applications that programmatically need to identify and validate Vega/Vega-Lite specifications, as the `$schema` field in these specifications often points to URLs like `https://vega.github.io/schema/vega-lite/v5.json` or `https://vega.github.io/schema/vega/v5.19.0.json`. The parser simplifies the process of interpreting these schema URLs, making it easier for tools such as `vega-embed` to determine the correct rendering or parsing mode, and for development environments to offer accurate schema validation and autocompletion features. The current stable version is 3.0.2, with its release cadence generally aligning with major updates to the broader Vega and Vega-Lite ecosystems. Its key differentiator is its highly focused purpose, offering a reliable and standardized method for interpreting schema URLs without requiring complex manual string manipulation, which is a common footgun for developers parsing these URLs directly.
Traffic · last 30 days ↓14% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France