Skip to main content

Trevas TS

npm version Storybook

Trevas TS is a TypeScript library for transforming and validating statistical data using the VTL 2.1 language.

What is VTL?

  • Business, logical-level and user-friendly language for statisticians
  • Relies on standard structural metadata
  • Interoperable, platform-agnostic
  • Functional language, enabling data lineage for more insight and reproductibility

Trevas TS

Trevas TS partially covers the definition of VTL.

Have a look to the coverage section for more information.

Trevas TS >= 1.0.0

The version of VTL is 2.1.

The library exposes the interpret function, taking 2 arguments, the VTL expression and a bindings object.

BasicScalarTypes, Bindings, Component and Dataset types are also exposed.

For more informations, a developer guide is available.

Trevas TS < 1.0.0

The version of VTL is 2.0.

Versions below version 1.0.0 of Trevas were implemented in JavaScript, using antlr4 and an inconsistent Dataset model.

It is not recommended to use these versions.