win32.d.ts 669 B

123456789101112131415161718
  1. /**
  2. * This is the Windows implementation of isexe, which uses the file
  3. * extension and PATHEXT setting.
  4. *
  5. * @module
  6. */
  7. import { IsexeOptions } from './options';
  8. /**
  9. * Determine whether a path is executable based on the file extension
  10. * and PATHEXT environment variable (or specified pathExt option)
  11. */
  12. export declare const isexe: (path: string, options?: IsexeOptions) => Promise<boolean>;
  13. /**
  14. * Synchronously determine whether a path is executable based on the file
  15. * extension and PATHEXT environment variable (or specified pathExt option)
  16. */
  17. export declare const sync: (path: string, options?: IsexeOptions) => boolean;
  18. //# sourceMappingURL=win32.d.ts.map