0.0.8 • Published 3 years ago

babel-plugin-try-catch-func v0.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

babel-plugin-try-catch

Example

In

// input code

Out

"use strict";

// output code

Installation

$ npm install babel-plugin-try-catch

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["try-catch"]
}

Via CLI

$ babel --plugins try-catch script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["try-catch"]
});