deno/ext/io
Nathan Whitaker 8749d651fb
fix(node): Create additional pipes for child processes (#25016)
Linux/macos only currently.

Part of https://github.com/denoland/deno/issues/23524 (fixes it on
platforms other than windows).
Part of #16899  (fixes it on platforms other than windows).

After this PR, playwright is functional on mac/linux.
2024-08-15 09:38:46 -07:00
..
12_io.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
bi_pipe.rs fix(node): Create additional pipes for child processes (#25016) 2024-08-15 09:38:46 -07:00
Cargo.toml fix(node): Create additional pipes for child processes (#25016) 2024-08-15 09:38:46 -07:00
fs.rs
lib.rs fix(node): Create additional pipes for child processes (#25016) 2024-08-15 09:38:46 -07:00
pipe.rs
README.md docs: Add documentation to a subset of available extensions (#24138) 2024-06-18 00:07:48 +02:00
winpipe.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00

deno_io

This crate provides IO primitives for other Deno extensions, this includes stdio streams and abstraction over File System files.

Usage Example

From javascript, include the extension's source:

import * as io from "ext:deno_io/12_io.js";

Then from rust, provide: deno_io::deno_io::init_ops_and_esm(Option<deno_io::Stdio>) in the extensions field of your RuntimeOptions

Where deno_io::Stdio implements Default, and can therefore be provided as Some(deno_io::Stdio::default())

Dependencies

  • deno_web: Provided by the deno_web crate
  • deno_tty: Provided in deno/runtime/ops/tty.rs