ExecJS
Run a short JavaScript expression from Ruby.
rails · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install execjs at version 2.10.2. Evaluate one JavaScript addition expression through the local engine.
What we tested
2.10.2. Evaluate one JavaScript addition expression through the local engine. The execution result returned 5.