Skip to content

Document JavaScript port (jslt-js) in README; add it to playground#388

Open
amkraev697642 wants to merge 4 commits into
schibsted:masterfrom
amkraev697642:docs/list-javascript-port
Open

Document JavaScript port (jslt-js) in README; add it to playground#388
amkraev697642 wants to merge 4 commits into
schibsted:masterfrom
amkraev697642:docs/list-javascript-port

Conversation

@amkraev697642

@amkraev697642 amkraev697642 commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • README: link to jslt-js (npm, Node + browser, passes upstream conformance tests).
  • Playground: adds Run in JS, Run (Java server) unchanged.

Notes

  • No changes to core Java engine.
  • Playground tested locally with Java 11

@amkraev697642 amkraev697642 changed the title Document JavaScript port (jslt-js) in README Document JavaScript port (jslt-js) in README; add it to playground Jul 3, 2026
@amkraev697642

amkraev697642 commented Jul 3, 2026

Copy link
Copy Markdown
Author

@larsga — Please review when you have a moment. I found JSLT very useful, so when I found there is no javascript engine available, faithfully ported it. Most direct port, 1 to one class files. All fixture tests pass + added more tests:

➜ jslt-js git:(main) ✗ npm test

jslt-js@0.1.2 test
node --test

✔ fallback (macro): short-circuits on first value that isn't null/{}/[] (isValue, not isTrue — "" and 0 count) (2.526833ms)
✔ flatten (3.116458ms)
...
✔ custom JS functions register via the extensions/functions option (0.400291ms)
✔ parse errors surface as JsltException with location info (0.476167ms)
ℹ tests 710
ℹ suites 0
ℹ pass 710
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 457.871834

This PR just adds README link to jslt-js, and a Run in JS button in the playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant