Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/fs.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.177.0/node/fs.ts";

Classes

Instances of fs.ReadStream are created and returned using the createReadStream function.

  • Extends stream.Writable

Variables

Functions

TODO: Also accept 'data' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403

TODO: Also accept 'data' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403

Asynchronously changes the owner and group of a file.

Synchronously changes the owner and group of a file.

Unlike the 16 kb default highWaterMark for a stream.Readable, the stream returned by this method has a default highWaterMark of 64 kb.

options may also include a start option to allow writing data at some position past the beginning of the file, allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Modifying a file rather than replacing it may require the flags option to be set to r+ rather than the default w. The encoding can be any one of those accepted by Buffer.

TODO: Also accept 'path' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403 Deprecated in node api

TODO: Also accept 'path' parameter as a Node polyfill Buffer or URL type once these are implemented. See https://github.com/denoland/deno/issues/3403

TODO: Also accept 'path' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403

TODO: Also accept 'path' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403

Write buffer to the file specified by fd. If buffer is a normal object, it must have an own toString function property.

If buffer is a plain object, it must have an own (not inherited) toStringfunction property.

Write an array of ArrayBufferViews to the file specified by fd usingwritev().

For detailed information, see the documentation of the asynchronous version of this API: writev.