runok
Version:
NPM scripts on steroids! Replace your scripts with pure JS
13 lines • 344 B
TypeScript
/**
* Changes directory for commands executed in callback function.
*
* ```js
* // copy file in "base" directory
* chdir('./base', () => copy('a.txt', 'b.txt')));
* ```
*
* @param workDir
* @param callback
*/
export default function chdir(workDir: string, callback: CallableFunction): Promise<any>;
//# sourceMappingURL=chdir.d.ts.map