0.0.1 • Published 6 years ago
jsbuggg v0.0.1
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?
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 / Sourcedouble_to_triple_equal_sign
- Convert one double equal to triple equal sign / Sourceswitch_func_params_var_name
- Switch two params name in the function / Sourceshuffle_var_name
- Randomly shuffle two variable names within the scope / Sourceshuffle_array_items
- Randomly shuffle items within the array / Sourcemodify_magic_number
- Silently update one magic number so it becomes mysterious number / Sourcecovert_null_undefined
- Convert the the type between Null and Undefined / Sourceremove_boolean_object
- Remove the boolean object from Boolean( array.length ) to array.length / Sourceis_odd_is_even
- Covert is even/odd expression / Source- You have an awesome idea of bug scenario?
Resources when developing thhhhhee jsbuggg
- AST Explorer / https://astexplorer.net/
- Babylon AST node type SPEC / https://github.com/babel/babel/blob/master/packages/babylon/ast/spec.md
- Babel Plugin Handbook / https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md
- Babel Types / https://github.com/babel/babel/tree/master/packages/babel-types
:callme_hand: Better Call JSBUGGG, Time to be evil_ :smiling_imp: