index.js 516 B

12345678910111213141516
  1. import * as posix from './posix.js';
  2. import * as win32 from './win32.js';
  3. export * from './options.js';
  4. export { win32, posix };
  5. const platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
  6. const impl = platform === 'win32' ? win32 : posix;
  7. /**
  8. * Determine whether a path is executable on the current platform.
  9. */
  10. export const isexe = impl.isexe;
  11. /**
  12. * Synchronously determine whether a path is executable on the
  13. * current platform.
  14. */
  15. export const sync = impl.sync;
  16. //# sourceMappingURL=index.js.map