Trevas TS is a TypeScript 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.
The @inseefrtrevas
package is the VTL engine itself, which exposes the interpret
function root (named export).
VTL 2.1 is supported since Trevas TS >= 1.0.0
VTL 2.0 was supported for Trevas TS < 1.0.0
To use Trevas TS in your JavaScript project, just run:
yarn add @inseefr/trevas
or
npm install @inseefr/trevas
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
Run once:
yarn test
Run with hot reloading:
yarn test-watch
Run storybook:
yarn storybook
Run docusaurus documentation:
cd docs
yarn
yarn start
This library is deprecated and no longer maintained. The last version is 0.3.2.
See here for replacing tools.
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.
@inseefr/trevas
is the next engine.
This library is deprecated and no longer maintained. The last version is 1.0.0-rc2.
See here for replacing tools.