posix.d.ts 617 B

123456789101112131415161718
  1. /**
  2. * This is the Posix implementation of isexe, which uses the file
  3. * mode and uid/gid values.
  4. *
  5. * @module
  6. */
  7. import { IsexeOptions } from './options';
  8. /**
  9. * Determine whether a path is executable according to the mode and
  10. * current (or specified) user and group IDs.
  11. */
  12. export declare const isexe: (path: string, options?: IsexeOptions) => Promise<boolean>;
  13. /**
  14. * Synchronously determine whether a path is executable according to
  15. * the mode and current (or specified) user and group IDs.
  16. */
  17. export declare const sync: (path: string, options?: IsexeOptions) => boolean;
  18. //# sourceMappingURL=posix.d.ts.map