olatov/pas2js

By olatov

Updated 4 months ago

Unofficial pas2js image

Image
Languages & frameworks
0

818

olatov/pas2js repository overview

About this image

This is an unofficial Docker image for the pas2js transpiler. It lets you convert Pascal programs or units into JavaScript modules without installing the pas2js tool or the Free Pascal Compiler (FPC) on the host.

Run pas2js against source files

A common pattern is to mount your project directory into the container and run pas2js with input/output paths inside the container:

# from your project directory containing MyUnit.pas
docker run --rm -v "$PWD":/src olatov/pas2js:latest pas2js /src/MyUnit.pas -o /src/MyUnit.js

Notes:

  • Use -v "$PWD":/src on Linux/macOS. On Windows PowerShell you may use ${PWD} or run from Git Bash where "$PWD" works.

Additional flags

Any pas2js CLI flags can be appended after the command in the docker run invocation. Example:

docker run --rm -v "$PWD":/src olatov/pas2js:latest pas2js /src/MyUnit.pas -d -O2 -o /src/MyUnit.js

Tag summary

Content type

Image

Digest

sha256:bdd9efda2

Size

40.2 MB

Last updated

4 months ago

docker pull olatov/pas2js