bun-runtime.mjs 361 B

12345678910
  1. import { getRuntime as getWebRuntime } from "./web-runtime.mjs";
  2. import { ReadStream as FsReadStream } from 'node:fs';
  3. export function getRuntime() {
  4. const runtime = getWebRuntime();
  5. function isFsReadStream(value) {
  6. return value instanceof FsReadStream;
  7. }
  8. return { ...runtime, isFsReadStream };
  9. }
  10. //# sourceMappingURL=bun-runtime.mjs.map