Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inseefr/trevas-ts
JavaScript engine for the Validation and Transformation Language
https://github.com/inseefr/trevas-ts
antlr control parsing validation vtl
Last synced: 1 day ago
JSON representation
JavaScript engine for the Validation and Transformation Language
- Host: GitHub
- URL: https://github.com/inseefr/trevas-ts
- Owner: InseeFr
- License: mit
- Created: 2019-08-23T09:28:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T10:05:40.000Z (4 months ago)
- Last Synced: 2025-01-25T09:33:21.546Z (5 days ago)
- Topics: antlr, control, parsing, validation, vtl
- Language: TypeScript
- Homepage:
- Size: 62.8 MB
- Stars: 9
- Watchers: 10
- Forks: 8
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Trevas TS
Trevas TS is a TypeScript engine for the [Validation and Transformation Language](https://sdmx.org/?page_id=5096). It is part of the Trevas family, together with the [Trevas](https://github.com/InseeFr/Trevas) Java engine.
[![Trevas TS CI](https://github.com/InseeFr/Trevas-TS/actions/workflows/ci.yml/badge.svg)](https://github.com/InseeFr/Trevas-TS/actions/workflows/ci.yml)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Trevas-TS&metric=coverage)](https://sonarcloud.io/dashboard?id=InseeFr_Trevas-TS)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=InseeFr_Trevas-TS&metric=alert_status)](https://sonarcloud.io/dashboard?id=InseeFr_Trevas-TS)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@main/badge/badge-storybook.svg)](https://inseefr.github.io/Trevas-TS/storybook/storybook-static)The documentation can be found in the [docs](https://github.com/InseeFr/Trevas-TS/tree/master/docs) folder and [browsed online](https://inseefr.github.io/Trevas-TS/docs).
## @inseefr/trevas
[![npm version](https://badge.fury.io/js/%40inseefr%2Ftrevas.svg)](https://badge.fury.io/js/%40inseefr%2Ftrevas)
The `@inseefrtrevas` package is the VTL engine itself, which exposes the `interpret` function root (named export).
### Versions
VTL 2.1 is supported since Trevas TS >= 1.0.0
VTL 2.0 was supported for Trevas TS < 1.0.0
## Getting started
### Use Trevas TS
To use Trevas TS in your JavaScript project, just run:
```
yarn add @inseefr/trevas
```or
```
npm install @inseefr/trevas
```### Build Trevas TS
If you prefer to build Trevas TS locally, first clone the Github repository:
```
git clone https://github.com/InseeFr/Trevas-TS.git
cd Trevas-TS
yarn
yarn build
```### Tests
Run once:
```
yarn test
```Run with hot reloading:
```
yarn test-watch
```### Storybook
Run storybook:
```
yarn storybook
```### Documentation
Run docusaurus documentation:
```
cd docs
yarn
yarn start
```## Archived packages
### @inseefr/vtl-2.0-antlr-tools
This library is deprecated and no longer maintained.
The last version is 0.3.2.See [here](https://github.com/Making-Sense-Info/VTL-2.0-ANTLR-Tools-TS) for replacing tools.
### @inseefr/vtl-tools
This library is deprecated and no longer maintained.
The last version is 0.1.15.### @inseefr/vtl-2.1-engine
This library is deprecated and no longer maintained.
The last version is 0.1.9.`@inseefr/trevas` is the next engine.
### @inseefr/vtl-2.1-antlr-tools
This library is deprecated and no longer maintained.
The last version is 1.0.0-rc2.See [here](https://github.com/Making-Sense-Info/VTL-2.1-ANTLR-Tools-TS) for replacing tools.