@nexusts/drive
v0.9.5
Published
File storage abstraction (Local / S3 / R2 / memory)
Readme
@nexusts/drive
NexusTS — Bun-native fullstack framework
Description
File storage abstraction (Local / S3 / R2 / memory).
Upload / download / delete files through a unified API. Drivers: local filesystem, S3, R2, in-memory.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/drivePeer dependencies
None. No external dependencies for the memory / local backends. The S3 / R2 backends require an AWS SDK; install only if you use them.
Usage
import { /* public API */ } from "@nexusts/drive";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
