Trevas JS is a JavaScript engine for the Validation and Transformation Language. It is part of the Trevas family, together with the Trevas Java engine.
The documentation can be found in the docs folder and browsed online.
Trevas JS is a Monorepo with the following modules.
The trevas
package is the VTL engine itself, which exposes the interpret
function root (named export).
This package is generated by Antlr from the VTL 2.0 EBNF grammar; VtlLexer
, VtlParser
, VtlListener
and VtlVisitor
are exposed at root (named export).
To use Trevas JS in your JavaScript project, just run:
yarn add @inseefr/trevas
or
npm install @inseefr/trevas
If you prefer to build Trevas JS locally, first clone the Github repository:
git clone https://github.com/InseeFr/Trevas-JS.git
cd Trevas-JS
Install the dependencies (yarn is required because of workspaces) and build the packages:
yarn
yarn build
Run once:
yarn test
Run with hot reloading:
yarn test-watch
Run storybook:
yarn start-storybook
This library is deprecated and no longer maintained. The last version is 0.1.15.
This library is deprecated and no longer maintained. The last version is 0.1.9.
This library is deprecated and no longer maintained. The last version is 1.0.0-rc2.