babel / ruby-babel-transpiler

Ruby Babel is a bridge to the JS Babel transpiler.

Home Page:https://github.com/babel/ruby-babel-transpiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Babel Transpiler

Ruby Babel is a bridge to the JS Babel transpiler.

require 'babel/transpiler'
Babel::Transpiler.transform File.read("foo.es6")

Installation

$ gem install babel-transpiler

Dependencies

This library depends on the babel-source gem which is updated any time a new version of Babel is released.

ExecJS

The ExecJS library is used to automatically choose the best JavaScript engine for your platform. Check out its README for a complete list of supported engines.

About

Ruby Babel is a bridge to the JS Babel transpiler.

https://github.com/babel/ruby-babel-transpiler

License:MIT License


Languages

Language:Ruby 56.4%Language:Shell 35.3%Language:HTML 8.3%