0.0.2 • Published 2 years ago

@anchan828/nest-storage-local v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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");
  }
}
0.0.1

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago