Registry / utility / therubyracer

therubyracer

JSON →
library0.12.3rbrubygemsunverified

Call JavaScript code and manipulate JavaScript objects from Ruby. Call Ruby code and manipulate Ruby objects from JavaScript.

gem install therubyracer
INSTALL
IMPORT
SIG · THERUBYRACER
T
therubyracer
utilityrubyv0.12.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

V8
require 'therubyracer'

Evaluate JavaScript code from Ruby using the V8 engine.

require 'therubyracer' cxt = V8::Context.new cxt.eval('7 * 6')
Debug
Known issues
gotchaRequires a native V8 library; installation may fail on some systems.
fix
Ensure libv8 is installed or use a JavaScript runtime like mini_racer.
affects: >= 0.12.0
Upgrade
Version history
0.12.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources