A simple, platform-agnostic interface for file systems: paths, files and directories, and that is it. No symlinks, no hardlinks, no metadata, no locking. Intended to be backed by implementations for different typescript runtimes and/or platforms (or runtime-agnostic in-memory backends for non-persistent use-cases).
The exact functionality of simple file systems is defined in the SimpleFilesystem interface. We provide only a simple in-memory implementation of that interface — the MemoryFs. Persistent, platform-specific implementations must be imported from other packages, such as simple-fs-deno for Deno.
The Path class describes paths in the simple fs. See the Pathish type for working not only with Paths but also with strings which can be parsed into paths.
Add Package
deno add jsr:@wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";
Import directly with a jsr specifier
import * as simple_fs_abstraction from "jsr:@wormblossom/simple-fs-abstraction";
Add Package
pnpm i jsr:@wormblossom/simple-fs-abstraction
pnpm dlx jsr add @wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";
Add Package
yarn add jsr:@wormblossom/simple-fs-abstraction
yarn dlx jsr add @wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";
Add Package
vlt install jsr:@wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";
Add Package
npx jsr add @wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";
Add Package
bunx jsr add @wormblossom/simple-fs-abstraction
Import symbol
import * as simple_fs_abstraction from "@wormblossom/simple-fs-abstraction";