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

x/ayonli_jsext/esm/fs.js

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/fs.js";

Variables

Platform-specific end-of-line marker. The value is \r\n in Windows server-side environments, and \n elsewhere.

v
readFileAsStream
deprecated

Functions

Changes the permission of the specified file or directory.

Changes the owner and group of the specified file or directory.

Creates a readable stream for the target file.

Creates a writable stream for the target file.

Ensures the directory exists, creating it (and any parent directory) if not.

Checks if the given path exists.

Obtains the directory handle of the given path.

Obtains the file handle of the given path.

Creates a hard link (or symbolic link) from the source path to the destination path.

Creates a new directory with the given path.

Reads the directory of the given path and iterates its entries.

Reads the content of the given file in bytes.

Reads the file as a File object.

Reads the content of the given file as text.

Returns the destination path of a symbolic link.

Recursively reads the contents of the directory and transform them into a tree structure.

Removes the file or directory of the given path from the file system.

Renames the file or directory from the old path to the new path.

Returns the information of the given file or directory.

Truncates (or extends) the file to reach the specified size. If size is not specified then the entire file contents are truncated.

Changes the access (atime) and modification (mtime) times of the file or directory. Given times are either in seconds (UNIX epoch time) or as Date objects.

Writes the given data to the file.

Writes multiple lines of content to the file.