texlive-json-schemas

0.2.0 • Public • Published

texlive-json-schemas

JSON schema files for TeX Live resources

npm

This package provides JSON schema files and TypeScript type definitions for TeX Live JSON formats, with minor modifications to match the actual output.

Installation

npm install texlive-json-schemas

Usage

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>(tlpdb, json)) {
  // typeof json === TLPDB
}

References

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i texlive-json-schemas

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

55.5 kB

Total Files

20

Last publish

Collaborators

  • teatimeguest