deno/ext/io
Yoshiya Hinosawa 3de21f1b8d
Some checks failed
ci / pre-build (push) Has been cancelled
ci / test debug macos-x86_64 (push) Has been cancelled
ci / test release macos-x86_64 (push) Has been cancelled
ci / test debug windows-x86_64 (push) Has been cancelled
ci / test release windows-x86_64 (push) Has been cancelled
ci / test debug linux-aarch64 (push) Has been cancelled
ci / test release linux-aarch64 (push) Has been cancelled
ci / test debug macos-aarch64 (push) Has been cancelled
ci / test release macos-aarch64 (push) Has been cancelled
ci / bench release linux-x86_64 (push) Has been cancelled
ci / lint debug linux-x86_64 (push) Has been cancelled
ci / lint debug macos-x86_64 (push) Has been cancelled
ci / lint debug windows-x86_64 (push) Has been cancelled
ci / test debug linux-x86_64 (push) Has been cancelled
ci / test release linux-x86_64 (push) Has been cancelled
ci / build wasm32 (push) Has been cancelled
ci / publish canary (push) Has been cancelled
fix(ext/node): add fchown and fchownSync to node:fs (#29408)
2025-05-23 15:00:39 +09:00
..
12_io.js fix: process.stdin.pause() (#29330) 2025-05-17 18:46:26 +05:30
bi_pipe.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml fix(ext/node): add fchown and fchownSync to node:fs (#29408) 2025-05-23 15:00:39 +09:00
fs.rs fix(ext/node): add fchown and fchownSync to node:fs (#29408) 2025-05-23 15:00:39 +09:00
lib.rs fix(ext/node): add fchown and fchownSync to node:fs (#29408) 2025-05-23 15:00:39 +09:00
pipe.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
README.md refactor: allow lazy main module (#28929) 2025-04-30 19:59:20 +00:00
winpipe.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00: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(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