NestJS Storage Module
nestjs-nvs-storage is a storage module for NestJS that provides a unified API for uploading files and managing objects across multiple providers.
It is designed around a provider-based structure so your applications can:
- upload files from Buffer, Base64, or a remote URL
- validate file size and allowed mime types
- delete objects
- generate share links (pre-signed URLs) when supported by the provider
Supported versions
- NestJS: v10.x (package dependencies target
@nestjs/commonand@nestjs/core^10) - Node.js: the version supported by your NestJS v10 setup
Features
- ✅ Provider-based design (providers: S3, MinIO)
- ✅ Single service API (
StorageService) exported from the module - ✅ Upload helpers:
uploadAsync,uploadWithBase64Async,uploadWithUrlAsync - ✅ Optional validations: max file size, allowed mime types