Karma has changed its config file format from plain ol' Javascript to RequireJS module.exports format.

I've written a quick script to migrate a config file from one format to the other. It's been tested on Linux and OSX.

Usage: migrateKarmaConfig.sh [options] path-to-karma-config

-t, --test Check if config file has been upgraded
-h, --help Display this message