Crates.io | deno_io |
lib.rs | deno_io |
version | 0.92.0 |
source | src |
created_at | 2023-03-03 15:05:13.827324 |
updated_at | 2024-12-11 03:39:20.122107 |
description | IO primitives for Deno extensions |
homepage | |
repository | https://github.com/denoland/deno |
max_upload_size | |
id | 799811 |
size | 74,459 |
This crate provides IO primitives for other Deno extensions, this includes stdio streams and abstraction over File System files.
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())
deno_web
cratedeno/runtime/ops/tty.rs