Skip to content
/ fs Public

Cross Runtime (Deno, Node, Bun) filesystem operations for JavaScript and TypeScript

License

Notifications You must be signed in to change notification settings

cross-org/fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@cross/fs

This is deprecated

We started working on this library just to realise that there is already a fs module supporting all runtimes, built into all runtimes - node:fs/promises.

If you want to work with paths, there is @std/path.

Here's how to use it, using stat as an example:

import { stat } from "node:fs/promises";

const stats = await stat("mod.ts");

console.log(stats);

Run using

Deno:

deno run --allow-read demo.ts

Node:

npx tsx demo.ts

Bun:

bun run demo.ts

About

Cross Runtime (Deno, Node, Bun) filesystem operations for JavaScript and TypeScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published