Skip to Content
Introduction

Rush-FS

API-aligned with Node.js fs for painless drop-in replacement in existing projects. Get multi-fold performance in heavy file operations, powered by Rust.

Why Rush-FS?

  • Drop-in replacement — Same API as Node.js fs; swap the import and go.
  • Faster where it matters — Recursive readdir, glob, rm, and cp are 2–70× faster thanks to Rust’s parallel walkers.
  • Prebuilt binaries — No build step for users; we ship native binaries per platform.

Quick example

import { readdir, readFile, writeFile, rm } from '@rush-fs/core' const files = await readdir('./src', { recursive: true, withFileTypes: true }) const content = await readFile('./package.json', { encoding: 'utf8' }) await writeFile('./out.txt', content) await rm('./temp', { recursive: true, force: true })

Next steps

Last updated on