{"library":"vega-schema-url-parser","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript","vega","vega-lite","schema","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vega-schema-url-parser","imports":["import parseSchemaUrl from 'vega-schema-url-parser';","import type { ParsedSchema } from 'vega-schema-url-parser';","const parseSchemaUrl = vegaSchemaUrlParser.default;"]},{"cmd":"yarn add vega-schema-url-parser","imports":[]},{"cmd":"pnpm add vega-schema-url-parser","imports":[]}],"homepage":null,"github":"https://github.com/vega/schema","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vega-schema-url-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vega-schema-url-parser/compatibility"}}