In
// input code
Out
"use strict";
// output code
$ npm install babel-plugin-function-try-actch
.babelrc
{
"plugins": ["function-try-actch"]
}
$ babel --plugins function-try-actch script.js
require("babel-core").transform("code", {
plugins: ["function-try-actch"]
});