- Save this js file to
~/.scripts/transformer.jsor somewhere you want
const transformer = (file, api) => {
const j = api.jscodeshift;
const root = j(file.source);sudo apt updatesudo apt upgrade you don't need sudo if you are logged in as rootpasswd command