[go: up one dir, main page]

Skip to content

JavaScript implementation of C++ reader of ESM tachograph files from https://sourceforge.net/p/readesm/code/HEAD/tree/

Notifications You must be signed in to change notification settings

xadll/readesm-js

 
 

Repository files navigation

readesm-js

JavaScript implementation of the reader of ESM tachograph files from https://sourceforge.net/p/readesm/code/HEAD/tree/

Works under Node (https://nodejs.org/) and in browsers.

Build

Working JavaScript FILE is commmited in htmlpage/js/main.EsmDownloader.bundle.js

To build a new version from TypeScript source code

python generator/generate.py

npm install
npm run build
npm run test

To publish

npm build:lib  # (optional)
npm publish

Command line

The command below will read and produces .html and .json

npm run cli -- convert data/Input.ddd

Browser link

The example below downloads DDD file, convert into JSON on the fly and saves into user downloads. See full example in htmlpage/download.html

<script src="js/main.EsmDownloader.bundle.js"></script>

<a href="javascript:EsmDownloader.downloadEsmAsJson('files/Input.ddd');">Input.ddd JSON</a>

<a href="javascript:EsmDownloader.downloadEsmAsHtml('files/Input.ddd');">Input.ddd HTML</a>

About

JavaScript implementation of C++ reader of ESM tachograph files from https://sourceforge.net/p/readesm/code/HEAD/tree/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.8%
  • TypeScript 14.3%
  • Other 1.9%