mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
15 lines
422 B
JavaScript
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 };
|