Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-remove-bugs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-remove-bugs

A Babel plugin which removes all bugs from your code.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-remove-bugs

Dependency Status devDependency Status Greenkeeper badge Build Status Code Coverage Npm Version License Badges

A Babel plugin which removes all bugs from your code.

Usage

First install and save this plugin as a development dependency:

npm i -D babel-plugin-remove-bugs

Or if you are using yarn:

yarn add --dev babel-plugin-remove-bugs

Then just add the plugin to your .babelrc file or equivalent Babel configuration:

{
  "plugins": ["remove-bugs"]
}

Example

Consider the following code. Can you spot the bug?

let counter = 0;
const output = document.getElementById('output');
const addOneButton = document.getElementById('add-one-button');

const render = () => {
  output.textContent = counter;
};

addOneButton.addEventListener('click', () => {
  counter += 0;
  render();
});

render();

babel-plugin-remove-bugs can! With this plugin enabled, Babel will output the following:

No more bugs!

Limitations

Being a Babel plugin, we can only remove bugs from files which Babel can parse. That said, this plugin is unable to fix syntax errors which cause Babel to crash.

License

MIT

Keywords

FAQs

Package last updated on 23 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc