Skip to content

Document JavaScript port (jslt-js) in README - #388

Merged
larsga merged 1 commit into
schibsted:masterfrom
amkraev697642:docs/list-javascript-port
Oct 10, 2026
Merged

larsga merged 1 commit into
schibsted:masterfrom
amkraev697642:docs/list-javascript-port

Conversation

@amkraev697642

@amkraev697642 amkraev697642 commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Adds a README link to jslt-js, a JavaScript port, with an online playground and editor tooling.

Earlier commits in this PR changed the playground in this repository. Those changes were reverted.

@larsga — If you get a chance, I’d appreciate a review. I can create a new one-liner PR if needed

@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
Contributor 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.

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

larsga commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Hi @amkraev697642. Thank you for this PR. I will be happy to merge it if you squash the six commits into a single one that is just the one-line change you ended up with in the end.

@amkraev697642
amkraev697642 force-pushed the docs/list-javascript-port branch from 36ab32f to e6db47c Compare October 10, 2026 07:22
@amkraev697642

Copy link
Copy Markdown
Contributor Author

@larsga My pleasure to squash, looks ready to go!

@larsga
larsga merged commit 30476f2 into schibsted:master Oct 10, 2026
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.

2 participants