babel-plugin-transform-beautifier

0.1.1 • Public • Published

babel-plugin-transform-beautifier

A babel plugin that beautifies JavaScript

Usage

npm i --save-dev babel-plugin-transform-beautifier

Then add the plugin to your babel config:

// babel.config.js
module.exports = {
  plugins: [
    'babel-plugin-transform-beautifier'
  ]
}

Example

The following code:

testA ? consequent() : testB && alternate()

Will be transformed to:

if (testA) {
  consequent()
} else if (testB) {
  alternate()
}

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-transform-beautifier

Weekly Downloads

133

Version

0.1.1

License

MIT

Unpacked Size

50.7 kB

Total Files

23

Last publish

Collaborators

  • gzzhanghao