0.0.1 • Published 6 years ago

jsbuggg v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

jsbuggg

:butterfly: :bee: :beetle: :fire: :fire: :bug: :scorpion: :spider:

jsbuggg helps generating potential bug to burn your colleagues or yourself.

Screenshot

Can you spot the potential bugs?

screen shot 2017-12-27 at 12 19 50

Getting Started

$ npm install -g jsbuggg

:frowning_face: You are alone in the office during lunch time. :angry: This is your last day in the office. :persevere: Your colleague is using Facebook all the time. :hushed: You are run out of task. :neutral_face: Company wants a good reason to fire the developer.

# Here is your creative time
# example : git config user.name <Your lovely colleague name>
#           git config user.email <Your lovely colleage email>
$ jsbuggg <your_beautiful_code.js>
$ git push --force
# Grab your knapsack and leave your desk asap

Potential bugs

jsbuggg traverses your code and creates potential bugs described below

  • append_dirty - Append a dirty word to one single string message / Source
  • double_to_triple_equal_sign - Convert one double equal to triple equal sign / Source
  • switch_func_params_var_name - Switch two params name in the function / Source
  • shuffle_var_name - Randomly shuffle two variable names within the scope / Source
  • shuffle_array_items - Randomly shuffle items within the array / Source
  • modify_magic_number - Silently update one magic number so it becomes mysterious number / Source
  • covert_null_undefined - Convert the the type between Null and Undefined / Source
  • remove_boolean_object - Remove the boolean object from Boolean( array.length ) to array.length / Source
  • is_odd_is_even - Covert is even/odd expression / Source
  • You have an awesome idea of bug scenario?

Resources when developing thhhhhee jsbuggg

  1. AST Explorer / https://astexplorer.net/
  2. Babylon AST node type SPEC / https://github.com/babel/babel/blob/master/packages/babylon/ast/spec.md
  3. Babel Plugin Handbook / https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md
  4. Babel Types / https://github.com/babel/babel/tree/master/packages/babel-types

:callme_hand: Better Call JSBUGGG, Time to be evil_ :smiling_imp: