{"id":17336462,"url":"https://github.com/jasonyangshadow/owncloud_webdav_js","last_synced_at":"2025-08-07T18:16:46.045Z","repository":{"id":57317233,"uuid":"337640309","full_name":"JasonYangShadow/owncloud_webdav_js","owner":"JasonYangShadow","description":"a nodejs module for accessing owncloud service using webdav protocol","archived":false,"fork":false,"pushed_at":"2021-03-18T01:27:39.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T13:38:25.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JasonYangShadow.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}},"created_at":"2021-02-10T06:45:12.000Z","updated_at":"2021-03-18T01:23:25.000Z","dependencies_parsed_at":"2022-08-25T21:11:45.290Z","dependency_job_id":null,"html_url":"https://github.com/JasonYangShadow/owncloud_webdav_js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonYangShadow%2Fowncloud_webdav_js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonYangShadow%2Fowncloud_webdav_js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonYangShadow%2Fowncloud_webdav_js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonYangShadow%2Fowncloud_webdav_js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonYangShadow","download_url":"https://codeload.github.com/JasonYangShadow/owncloud_webdav_js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245800308,"owners_count":20674277,"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":[],"created_at":"2024-10-15T15:30:17.427Z","updated_at":"2025-03-27T07:25:52.582Z","avatar_url":"https://github.com/JasonYangShadow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# owncloud_webdav_js\nA nodejs module for accessing owncloud instance via webdav protocol, you can search, upload, and download packages from owncloud using pure js\n\nTo manage the existing packages on owncloud, this module employs nedb to save all manipulations. The package related info includes 'package name', 'package version', 'package type'\n\nYou have to provide the url address of owncloud instance, user name, as well as app password for the user to complete the request.\n\nyou can install the core compoenents by:\n\n```js\nnpm i owncloud_webdav_js\n```\n\nExamples:\n1. search pkg\n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize client with url, user, pass(app pass)\nconst oc = new ocloud.Client(url, user, pass);\n//search pkg with name\noc.search(pkg).then(data =\u003e {console.log(data)}).catch(e =\u003e console.error(e));\n```\n\n2. search specific pkg\n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize client with url, user, pass(app pass)\nconst oc = new ocloud.Client(url, user, pass);\n//search pkg with specific properties, pkg name, version ,type(Docker, Singularity, OCI, LPMX and etc)\noc.searchpkg(pkg, ver, type).then(data =\u003e {console.log(data)}).catch(e =\u003e console.error(e));\n```\n\n3. search pkg with condition\n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize client with url, user, pass(app pass)\nconst oc = new ocloud.Client(url, user, pass);\n//initialize client with url, user, pass(app pass)\noc.searchregx(pkg, ver, type, op).then(data =\u003e {console.log(data)}).catch(e =\u003e console.error(e));\n```\n\n4. download pkg\n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize client with url, user, pass(app pass)\nconst oc = new ocloud.Client(url, user, pass);\n//downoad pkg with pkg name, version, type, target lacation\noc.download(pkg, ver, type, location).then(data =\u003e {console.log(data)}).catch(e =\u003e console.error(e));\n```\n\n5. upload pkg\n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize server with url, user, pass(app pass)\nconst os = new ocloud.Server(url, user, pass);\n//upload pkg and set its properties, location =\u003e the target pkg being uploaded, overwrite =\u003e whether overwritting existing record\nos.uploadpkg(pkg, ver, type, location, overwrite).then(data =\u003e {console.log(data)}).catch(e =\u003e{\n    console.error(e);\n});\n```\n\n6. delete pkg \n```js\n//require owncloud\nconst ocloud= require('owncloud');\n//initialize server with url, user, pass(app pass)\nconst os = new ocloud.Server(url, user, pass);\n//delete pkg with properties\nos.deletepkg(pkg, ver, type).then(data =\u003e {console.log(data)}).catch(e =\u003e{\n    console.error(e);\n});\n```\n\nThe app.js file inside this repository provides a basic CLI program for accessing these features. You can directly call the program with the following commands:\n\nFor example:\n```js\nnode app.js search --url=url --user=user --pass=password --pkg=package_name\n```\nFor details, you can use help commands:\n```js\nnode app.js --help\n```\n\n## Notice:\nThere are also executables available on the github repository\n[https://github.com/JasonYangShadow/owncloud_webdav_js](https://github.com/JasonYangShadow/owncloud_webdav_js)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonyangshadow%2Fowncloud_webdav_js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonyangshadow%2Fowncloud_webdav_js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonyangshadow%2Fowncloud_webdav_js/lists"}