Pray for the best but prepare for the worst, how about getting some praying prepared for your code?

Usage no npm install needed!

<script type="module">
  import antiBug from '';


Welcome to Anti-Bug.js

This is just another npm package just for fun.

Bugs are everywhere and being created all the time.

Let's just take them seriously with a positive attitude.


Add some magic words and pictures to the head of your code file simply.

What's more?Just take an explore with it.


Feel free to install it like most other npm packages:

#sudo npm install -g anti-bug


You can use this command to do some magic to your code file:

#anti-bug templateName fileA [fileB] ...

For example:

#anti-bug Buddha

The "Buddha" refers to the name of the template.

Now check the file and you will see...

Of course you can do the same thing to a whole directory's files:

#anti-bug templateName dirName

For example:

#anti-bug Buddha ./js

You can check the supported file types in config.json and the available templates in directory template.

Feel free to send pull request to upload the template file (UTF-8) you want to share and set more supported file types!


This project is licensed under the CC-BY-SA-4.0 license.

Copyright (c) 2014 Leoc Xu