0.0.2 • Published 4 years ago
@anchan828/nest-storage-local v0.0.2
@anchan828/nest-storage-local
Install
npm i @anchan828/nest-storage-local
Usage
LocalStorageModule.register({
bucket: "bucket",
dir: dirSync().name,
});
export class Service {
constructor(private readonly service: LocalStorageService) {}
public async uploadFile(): Promise<void> {
const dataPath = "local-path.txt";
await this.service.upload(dataPath, "path/to/test.txt");
}
}