{"id":78138,"library":"execjs","title":"ExecJS","description":"ExecJS lets you run JavaScript code from Ruby.","status":"active","version":"2.10.1","language":"ruby","source_language":null,"source_url":"https://github.com/rails/execjs","tags":["javascript","runtime","execution"],"install":[{"cmd":"gem install execjs","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'execjs', '~> 2.10.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"ExecJS","correct":"require 'execjs'"}],"quickstart":{"code":"require 'execjs'\ncontext = ExecJS.compile('function add(a, b) { return a + b; }')\ncontext.call('add', 1, 2) # => 3","lang":"ruby","description":"Run JavaScript code from Ruby"},"warnings":[{"fix":"Install Node.js or add therubyracer to your Gemfile","message":"Requires a JavaScript runtime (e.g., Node.js, therubyracer) to be installed","severity":"gotcha","affected_versions":">= 0"}],"env_vars":null,"search_vec":"'code':7 'execj':1,2 'execut':12 'javascript':6,10 'let':3 'rubi':9 'run':5 'runtim':11","created_at":"2026-06-18T04:08:02.946800+00:00","updated_at":"2026-06-18T04:08:02.946800+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rails/execjs","github":"https://github.com/rails/execjs","docs":"http://www.rubydoc.info/gems/execjs/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}