1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/io
Richard Carson e73f614b46
docs: Add documentation to a subset of available extensions (#24138)
I was able to use my experience with some of the Deno extensions to
flesh out their documentation a bit

I've provided docs for the following:
- web
- fetch
- net
- webidl
- url
- io
- crypto
- console

---------

Signed-off-by: Richard Carson <Rscarson@rogers.com>
2024-06-19 01:31:28 +02:00
..
12_io.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
Cargo.toml 1.44.2 (#24192) 2024-06-12 17:51:19 -07:00
fs.rs feat(runtime): Allow embedders to perform additional access checks on file open (#23208) 2024-04-19 18:12:03 -06:00
lib.rs fix(ext/node): windows cancel stdin read in line mode (#23969) 2024-05-29 22:23:04 +05:30
pipe.rs refactor(cli): clean up test runner channels (#22422) 2024-02-23 11:11:15 -07:00
README.md docs: Add documentation to a subset of available extensions (#24138) 2024-06-19 01:31:28 +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