Files
bun.sh/src/node-fallbacks/tty.js
2024-10-19 00:23:57 -07:00

15 lines
422 B
JavaScript

/**
* Browser polyfill for the `"tty"` module.
*
* Imported on usage in `bun build --target=browser`
*/
let isatty = () => false;
function WriteStream() {
throw new Error("tty.WriteStream is not implemented for browsers");
}
function ReadStream() {
throw new Error("tty.ReadStream is not implemented for browsers");
}
export { ReadStream, WriteStream, isatty };
export default { isatty, ReadStream, WriteStream };