Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teatimeguest/texlive-json-schemas
JSON schema files for TeX Live resources
https://github.com/teatimeguest/texlive-json-schemas
json-schema texlive
Last synced: 3 months ago
JSON representation
JSON schema files for TeX Live resources
- Host: GitHub
- URL: https://github.com/teatimeguest/texlive-json-schemas
- Owner: teatimeguest
- License: mit
- Created: 2024-03-01T10:49:07.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T13:01:16.000Z (7 months ago)
- Last Synced: 2024-09-26T19:05:40.381Z (3 months ago)
- Topics: json-schema, texlive
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/texlive-json-schemas
- Size: 206 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# texlive-json-schemas
> JSON schema files for TeX Live resources
[![npm][npm-badge]](https://www.npmjs.com/package/texlive-json-schemas)
This package provides JSON schema files and TypeScript type definitions
for [TeX Live JSON formats][json-formats],
with [minor modifications][diff] to match the actual output.## Installation
```sh
npm install texlive-json-schemas
```## Usage
```typescript
import Ajv from 'ajv';
import tlpdb from 'texlive-json-schemas/tlpdb.schema.json';
import type { TLPDB } from 'texlive-json-schemas/types';const ajv = new Ajv();
const json: unknown = { ... };if (ajv.validate(tlpdb, json)) {
// typeof json === TLPDB
}
```## References
- [**JSON formats for the various outputs of tlmgr** | root/trunk/Master/tlpkg/doc/json-formats.txt][json-formats]
- [**Those strange 00texlive packages** | root/trunk/Master/tlpkg/doc/00texlive-packages.txt][00texlive-packages]
- [TeX Live implementation documentation](https://www.tug.org/texlive/doc/tlpkgdoc/)## License
[MIT License](https://github.com/teatimeguest/texlive-json-schemas/blob/main/LICENSE)
[00texlive-packages]: https://tug.org/svn/texlive/trunk/Master/tlpkg/doc/00texlive-packages.txt?revision=45617&view=markup
[diff]: https://github.com/teatimeguest/texlive-json-schemas/blob/main/docs/json-formats.txt.diff
[json-formats]: https://tug.org/svn/texlive/trunk/Master/tlpkg/doc/json-formats.txt?revision=56458&view=markup
[npm-badge]: https://img.shields.io/npm/v/texlive-json-schemas?logo=npm&logoColor=959da5&labelColor=2e353b&color=c40000