{"id":19168136,"url":"https://github.com/masx200/webdav-cli","last_synced_at":"2025-05-07T14:23:31.243Z","repository":{"id":36986172,"uuid":"291930649","full_name":"masx200/webdav-cli","owner":"masx200","description":"A simple zero-configuration command-line webdav server","archived":false,"fork":false,"pushed_at":"2024-12-19T01:26:43.000Z","size":2091,"stargazers_count":7,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T14:23:25.488Z","etag":null,"topics":["webdav-cli","webdav-server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masx200.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-01T07:41:02.000Z","updated_at":"2025-05-05T10:50:08.000Z","dependencies_parsed_at":"2024-01-29T05:25:59.370Z","dependency_job_id":"2b4890ef-b2e2-4aa9-83f4-e5365d1fbd30","html_url":"https://github.com/masx200/webdav-cli","commit_stats":{"total_commits":122,"total_committers":3,"mean_commits":"40.666666666666664","dds":0.5245901639344263,"last_synced_commit":"08b5f347cf16493ae1e9441d0cfc10fee782b545"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fwebdav-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fwebdav-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fwebdav-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fwebdav-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masx200","download_url":"https://codeload.github.com/masx200/webdav-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892772,"owners_count":21820702,"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":["webdav-cli","webdav-server"],"created_at":"2024-11-09T09:41:23.127Z","updated_at":"2025-05-07T14:23:31.168Z","avatar_url":"https://github.com/masx200.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebDAV CLI\n\nforked from svtslv/webdav-cli\n\nhttps://github.com/svtslv/webdav-cli\n\nOptimized a problem\n\nhttps://github.com/OpenMarshal/npm-WebDAV-Server/issues/84\n\n## Description\n\nA simple zero-configuration command-line webdav server\n\n给 \"webdav\" 服务器加上了 \"etag\" 头部和条件请求的功能\n\n支持范围请求，跨域访问，支持内容压缩\n\n支持在浏览器中展示文件夹内容了，使用\"koa2-serve-index\"\n\n如果请求方法是\"GET\"或者\"HEAD\"，交给\"koa\"服务器处理，提供静态文件\n\n使用 \"http-auth\"进行用户验证。\n\n## Installation\n\n#### Globally via yarn\n\n```bash\nyarn global add @masx200/webdav-cli\n```\n\n#### Running on-demand:\n\n```bash\nnpx @masx200/webdav-cli [options]\n```\n\n## Examples\n\n```bash\nnpx @masx200/webdav-cli --help\n```\n\n```txt\n   usage: webdav-cli [options]\n\noptions:\n  --path,-pa       Path to folder [process.cwd()]\n  --host,-ho       Host to use [0.0.0.0]\n  --port,-po       Port to use [1900]\n  --digest,-dg     Enable digest authentication [basic]\n  --username,-u   Username for basic/digest authentication [random]\n  --password,-ps   Password for basic/digest authentication [random]\n\n  --disableAuthentication,-da  The server file becomes read-only without Authentication.[false]\n  --ssl,-s        Enable https [false]\n  --methodsWithoutAuthentication          methods Without Authentication[undefined]\n  --sslKey     Path to ssl key file [self-signed]\n  --sslCert    Path to ssl cert file [self-signed]\n  --help,-h       Print this list and exit\n\n  --rights,-r     Comma separated values without spaces [all]\n\n        'all', 'canCreate', 'canDelete', 'canMove', 'canRename',\n        'canAppend', 'canWrite', 'canRead', 'canSource',\n        'canGetMimeType', 'canGetSize', 'canListLocks',\n        'canSetLock', 'canRemoveLock', 'canGetAvailableLocks',\n        'canGetLock', 'canAddChild', 'canRemoveChild',\n        'canGetChildren', 'canSetProperty', 'canGetProperty',\n        'canGetProperties', 'canRemoveProperty', 'canGetCreationDate',\n        'canGetLastModifiedDate', 'canGetWebName', 'canGetType'\nenv:\n  WEBDAV_CLI_PATH, WEBDAV_CLI_HOST, WEBDAV_CLI_PORT,\n  WEBDAV_CLI_USERNAME, WEBDAV_CLI_PASSWORD, WEBDAV_CLI_DIGEST,\n  WEBDAV_CLI_SSL, WEBDAV_CLI_SSL_KEY, WEBDAV_CLI_SSL_CERT,\n   WEBDAV_CLI_AUTO_INDEX, WEBDAV_CLI_RIGHTS\n  WEBDAV_CLI_DISABLE_AUTHENTICATION\n```\n\n## TLS/SSL\n\nFirst, you need to make sure that openssl is installed correctly, and you have `key.pem` and `cert.pem` files. You can generate them using this command:\n\n```shell\nopenssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem\n```\n\nUse `0.0.0.0` as value for `Common name` if you want to be able to install the certificate in your OS's root certificate store or browser so that it is trusted.\n\nThen you need to run the server with `--ssl` for enabling SSL and `--sslKey=key.pem --sslCert=cert.pem` for your certificate files.\n\n## License\n\nMIT\n\n# changelog\n\n2022 年 6 月 15 日 10:12:28\n\n添加了可选参数 `methodsWithoutAuthentication`,可以允许某些方法不需要身份验证,例如:\n\n```\n'--methodsWithoutAuthentication=GET,HEAD,PROPFIND,OPTIONS'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasx200%2Fwebdav-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasx200%2Fwebdav-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasx200%2Fwebdav-cli/lists"}