index.ts 516 B

123456789101112131415161718
  1. import { exec, spawn } from './shell';
  2. import { readFile, readJsonFile, readDir, readJsonDir, getSubdirNames, dotEnv } from './file';
  3. export declare namespace NodeUtils {
  4. type Shell = {
  5. exec: typeof exec;
  6. spawn: typeof spawn;
  7. }
  8. type FileSystem = {
  9. readFile: typeof readFile;
  10. readJsonFile: typeof readJsonFile;
  11. readDir: typeof readDir;
  12. readJsonDir: typeof readJsonDir;
  13. getSubdirNames: typeof getSubdirNames;
  14. dotEnv: typeof dotEnv;
  15. }
  16. }