@ortac/specification
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

Ortac Specification

This project sets out the Ortac specification and exports various components which form part of the specification into both both CommonJS and ESM packages from a common Typescript ESM codebase.

Includes testing, coverage, coveralls.io, linting, TSDoc and auto creation of a package on creating a github release.

Typescript Node.js CI Node.js CI Coverage Status

Install

> npm install @ortac/specification

Features

  • Works with CommonJS and ESM
  • Provides Typescript types
  • Provides JSON Schemas for each file format as js objects
  • Provides TypeScript Type Guard functions for all file formats using JSON Schema checking (ajv)
  • Produces a set of ZIP files which are available on Github for each release version

Usage

ESM:

import * as ortac from '@ortac/specification';

console.log(ortac.schemas.locale.V1_0_0);

CommonJS:

var ortac = require('@ortac/specification');

console.log(ortac.schemas.locale.V1_0_0);

Documentation

Documentation can be found here

An explanation of everything produced by this project is here

Readme

Keywords

Package Sidebar

Install

npm i @ortac/specification

Weekly Downloads

134

Version

0.2.6

License

SEE LICENSE IN ./LICENSE.md

Unpacked Size

37.8 kB

Total Files

33

Last publish

Collaborators

  • gilbert_jcs
  • stevie-m
  • bkp7