process.chdir() in a callback plus directory stacks
npm install chdir
yarn add chdir
pnpm add chdir
bun add chdir