Code mods in JavaScript and how to get started creating your own
With the ever-changing landscape in web development, code is forever needing to be updated, whether that be due to updates in frameworks and libraries or new features supported in browsers. Manually dealing with all these updates can often be very error prone and time consuming and that is where code mods/refactoring tools come in. Code mods are scripts that can be run on existing code, templates, styles (pretty much anything with the correct parser and compiler) in order to identify a pattern and then update the code to a new one.