Variables
Const ajv
ajv: Ajv = new Ajv()
Const args
args: any = parser.parseArgs()
Const parser
parser: ArgumentParser = new ArgumentParser({addHelp: true,description: "Generates a JSON file suitable for using as the " +"``metadata`` option for a generic Meta object. The input file must " +"be a JSON file in the format produced by TEI's odd2json.xsl " +"transformation.",})
Const prog
prog: string = path.basename(process.argv[1])
Const stringified
stringified: string = JSON.stringify(output, undefined,(args.pretty as boolean) ? 2 : undefined)
Const valid
valid: true | false | PromiseLike<any> = validator(output)
Const validator
validator: ValidateFunction = ajv.compile(schema)