Quick start

You can install DevReplay using npm or yarn:

npm install -g devreplay
# or
yarn global add devreplay

You should then make a devreplay.json file. Here is the example.

[
    {
        "before": [
            "tmp = $1",
            "$1 = $2",
            "$2 = tmp"
        ],
        "after": [
            "$1, $2 = $2, $1"
        ]
    }
]

Fix the your source file.

devreplay --fix yourfile.py > yourfile.py
- tmp = a
- a = b
- b = a
+ a, b = b, a

Check out the full usage guide to learn more.