{"library":"opal-compiler","title":"Opal Compiler","description":"Transpile Ruby code to JavaScript in Node.js using the Opal Ruby-to-JS compiler. Current stable version 3.0.0 is based on Opal 1.7.3 and requires Node >=16. Release cadence is irregular. Unlike browser-focused Opal builds, this package provides a Node-native API (Builder) to compile Ruby files programmatically. Key differentiator: direct Node.js integration with no separate runtime required, supporting modern ESM patterns in v3.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install opal-compiler"],"cli":null},"imports":["import { Builder } from 'opal-compiler'","import 'opal-compiler'","Builder.create()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { Builder } from 'opal-compiler';\nconst builder = Builder.create();\nconst result = builder.build('hello.rb').toString();\nconsole.log(result);","lang":"typescript","description":"Transpile a Ruby file to JavaScript and print the compiled output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}