{"library":"matroska-schema","title":"Matroska and EBML Schema Definitions","description":"This package, `matroska-schema`, provides the official Matroska and EBML (Extensible Binary Meta Language) schema definitions for JavaScript environments. It serves as an MIT-licensed alternative to the previously GPL-licensed `schema.js` embedded within the `node-matroska` project, addressing licensing compatibility concerns for developers. The schema is automatically generated directly from the latest Matroska and EBML specifications maintained by the IETF-WG-CELLAR group, ensuring it remains current with the evolving standards for multimedia container formats. Currently at version 2.1.0, the package's release cadence is directly tied to updates in the upstream specifications, providing a reliable and permissively licensed data structure for libraries that parse, validate, or generate Matroska files, such as `node-matroska` or `node-ebml`.","language":"javascript","status":"maintenance","last_verified":"Wed Apr 22","install":{"commands":["npm install matroska-schema"],"cli":null},"imports":["import matroskaSchema from 'matroska-schema';","const matroskaSchema = require('matroska-schema');","import matroskaSchema from 'matroska-schema';\nconst ebmlHeader = matroskaSchema.find(entry => entry.name === 'EBMLHeader');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import matroskaSchema from 'matroska-schema';\n\nconsole.log('Successfully loaded Matroska schema. Total entries:', matroskaSchema.length);\n\n// Example: Find the 'Segment' top-level element definition\nconst segmentElement = matroskaSchema.find(entry => entry.name === 'Segment');\n\nif (segmentElement) {\n  console.log('Found Segment element:', segmentElement.name, 'ID:', segmentElement.id.toString(16));\n  console.log('Segment element description:', segmentElement.description.substring(0, 70) + '...');\n} else {\n  console.log('Segment element not found in schema.');\n}\n\n// To see a specific part of the schema, e.g., the EBML Header definition\nconst ebmlHeader = matroskaSchema.find(entry => entry.name === 'EBMLHeader');\nif (ebmlHeader) {\n    console.log('\\nEBMLHeader definition:');\n    console.dir(ebmlHeader, { depth: 2 });\n}","lang":"typescript","description":"Demonstrates how to import the Matroska schema and access a specific element definition within it.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}