UNPKG

vega-schema-url-parser

Version:

A parser to get the library and version from Vega and Vega-Lite schema URLs.

3 lines (2 loc) 177 B
function e(e){var r=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:r[0],version:r[1]}}export{e as default}; //# sourceMappingURL=parser.module.js.map