UNPKG

jbash

Version:

Helpers for bash like shell scripting in JavaScript

39 lines (34 loc) 1.04 kB
declare function set(opt: "+x" | "-x" | "+e" | "-e"): void; declare const cd: typeof process.chdir; declare function echo( contents: string, outPath?: string, encoding?: string ): void; declare const exit: typeof process.exit; declare const env: typeof process.env; declare const args: string[]; declare const $0: string; declare const $1: string; declare const $2: string; declare const $3: string; declare const $4: string; declare const $5: string; declare const $6: string; declare const $7: string; declare const $8: string; declare const $9: string; declare const $10: string; declare function readFile(path: string, encoding?: string): string; declare const cat: typeof readFile; declare function writeFile( path: string, contents: string, encoding?: string ): void; declare function dirExists(path: string): boolean; declare function mkdir(path: string): void; declare function rmdir(path: string): void; declare function $(cmd: string): string; declare function exec(cmd: string): null; declare const eval: typeof exec;