Skip to content

reb2020/babel_transpiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's simple Babel Transpiler for PHP.

PHP Code:

$Babel = new \Babel\Transpiler\Core();
echo $Babel->execute("class REBUS {}");

Result:

"use strict";

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var REBUS = function REBUS() {
  _classCallCheck(this, REBUS);
};

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages