{"id":15282741,"url":"https://github.com/svtslv/nestjs-webdav","last_synced_at":"2025-10-27T12:09:38.060Z","repository":{"id":38615682,"uuid":"243898132","full_name":"svtslv/nestjs-webdav","owner":"svtslv","description":"WebDAV module for Nest","archived":false,"fork":false,"pushed_at":"2024-06-18T01:16:41.000Z","size":312,"stargazers_count":12,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T23:08:53.958Z","etag":null,"topics":["nest","nestjs","nextcloud","storage","webdav"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svtslv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-29T03:32:46.000Z","updated_at":"2024-01-02T14:55:31.000Z","dependencies_parsed_at":"2023-02-13T08:55:26.264Z","dependency_job_id":"59fa103e-8d1f-431b-8e7a-315fbb67d86e","html_url":"https://github.com/svtslv/nestjs-webdav","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-webdav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-webdav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-webdav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-webdav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svtslv","download_url":"https://codeload.github.com/svtslv/nestjs-webdav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643004,"owners_count":21138355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nest","nestjs","nextcloud","storage","webdav"],"created_at":"2024-09-30T14:38:15.014Z","updated_at":"2025-10-27T12:09:33.009Z","avatar_url":"https://github.com/svtslv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS WebDAV\n\n\u003ca href=\"https://www.npmjs.com/package/nestjs-webdav\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/nestjs-webdav.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/nestjs-webdav\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/nestjs-webdav.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\n## Table of Contents\n\n- [Description](#description)\n- [Installation](#installation)\n- [Examples](#examples)\n- [License](#license)\n\n## Description\nIntegrates WebDAV with Nest\n\n## Installation\n\n```bash\nnpm install nestjs-webdav webdav\n```\n\nYou can also use the interactive CLI\n\n```sh\nnpx nestjs-modules\n```\n\n## Examples\n\n### WebDAV-CLI\n```bash\nnpx webdav-cli --username=username --password=password\n```\n\n### NextCloud\n\n```bash\ndocker run \\\n-e SQLITE_DATABASE=nextcloud \\\n-e NEXTCLOUD_ADMIN_USER=admin \\\n-e NEXTCLOUD_ADMIN_PASSWORD=password \\\n-p 8080:80 \\\nnextcloud\n```\n\n### WebDAVModule.forRoot(options, connection?)\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { WebDAVModule } from 'nestjs-webdav';\nimport { AppController } from './app.controller';\n\n@Module({\n  imports: [\n    WebDAVModule.forRoot({\n      config: {\n        endpoint: 'http://127.0.0.1:1900',\n        username: 'username',\n        password: 'password',\n      },\n    }),\n    WebDAVModule.forRoot({\n      config: {\n        endpoint: 'http://localhost:8080/remote.php/dav/files/admin/',\n        username: 'admin',\n        password: 'password',\n      },\n    }, 'nextCloud'),\n  ],\n  controllers: [AppController],\n})\nexport class AppModule {}\n```\n\n### WebDAVModule.forRootAsync(options, connection?)\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { WebDAVModule } from 'nestjs-webdav';\nimport { AppController } from './app.controller';\n\n@Module({\n  imports: [\n    WebDAVModule.forRootAsync({\n      useFactory: () =\u003e ({\n        config: {\n          endpoint: 'http://127.0.0.1:1900',\n          username: 'username',\n          password: 'password',\n        },\n      }),\n    }),\n    WebDAVModule.forRootAsync({\n      useFactory: () =\u003e ({\n        config: {\n          endpoint: 'http://localhost:8080/remote.php/dav/files/admin/',\n          username: 'admin',\n          password: 'password',\n        },\n      }),\n    }, 'nextCloud'),\n  ],\n  controllers: [AppController],\n})\nexport class AppModule {}\n```\n\n### InjectWebDAV(connection?)\n\n```ts\nimport { Controller, Get, } from '@nestjs/common';\nimport { InjectWebDAV, WebDAV } from 'nestjs-webdav';\n\n@Controller()\nexport class AppController {\n  constructor(\n    @InjectWebDAV() private readonly webDAV: WebDAV,\n    @InjectWebDAV('nextCloud') private readonly nextCloud: WebDAV,\n  ) {}\n\n  @Get()\n  async getHello() {\n    return {\n      webdavCli: await this.webDAV.getDirectoryContents('/'),\n      nextCloud: await this.nextCloud.getDirectoryContents('/'),\n    }\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fnestjs-webdav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvtslv%2Fnestjs-webdav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fnestjs-webdav/lists"}