{"id":18981095,"url":"https://github.com/myxvisual/ossr","last_synced_at":"2025-11-11T13:03:24.934Z","repository":{"id":34879830,"uuid":"185384431","full_name":"myxvisual/ossr","owner":"myxvisual","description":"📂 An OSS object selector for CLI.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:42:03.000Z","size":422,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-27T01:03:00.933Z","etag":null,"topics":[],"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/myxvisual.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":"2019-05-07T11:06:45.000Z","updated_at":"2021-11-08T08:43:41.000Z","dependencies_parsed_at":"2024-11-08T16:08:43.381Z","dependency_job_id":"2bb5bb74-c175-4cd9-8488-30a1d1990315","html_url":"https://github.com/myxvisual/ossr","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.05555555555555558,"last_synced_commit":"7be9ffa65da1c9f175c86aaf319f5ed81a6d878e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxvisual%2Fossr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxvisual%2Fossr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxvisual%2Fossr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxvisual%2Fossr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myxvisual","download_url":"https://codeload.github.com/myxvisual/ossr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985728,"owners_count":19729515,"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-11-08T16:08:41.531Z","updated_at":"2025-11-11T13:03:19.898Z","avatar_url":"https://github.com/myxvisual.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSSR\n[![npm package](https://img.shields.io/npm/v/ossr.svg?style=flat-square)](https://www.npmjs.org/package/ossr)\n[![PeerDependencies](https://img.shields.io/david/peer/myxvisual/ossr.svg?style=flat-square)](https://david-dm.org/myxvisual/ossr#info=peerDependencies\u0026view=list)\n[![Dependencies](https://img.shields.io/david/myxvisual/ossr.svg?style=flat-square)](https://david-dm.org/myxvisual/ossr)\n[![DevDependencies](https://img.shields.io/david/dev/myxvisual/ossr.svg?style=flat-square)](https://david-dm.org/myxvisual/react-uwp#info=devDependencies\u0026view=list)\n## Inistall\n`npm i -g  ossr`\n\n## Config\n\n**Simplify**\n\n`ossr -i \u003caccessKeyId\u003e -s \u003caccessKeySecret\u003e -b \u003cbucket\u003e`\n\n**Advance**\n\n`ossr -i \u003caccessKeyId\u003e -s \u003caccessKeySecret\u003e -b \u003cbucket\u003e -e \u003cendpoint\u003e -r \u003cregion\u003e -t \u003ctimeout\u003e`\n\n## CLI Usage\n### Graph\n`ossr`\n`ossr -l`\n`ossr -l folder/`\n![list](https://raw.githubusercontent.com/myxvisual/ossr/master/images//list.gif)\n\n### Upload\n\n#### Upload file to root pat\n`ossr ./localFile.jpg` ------\u003e `https://xxxx/localFile.jpg`\n\n#### Upload folder to root path\n`ossr ./localFolder` ------\u003e `https://xxxx/onlineFolder/\u003clocalFolder**\u003e`\n\n#### Upload file with rename\n`ossr ./localFile.jpg customFolder/renamedFile.jpg` ------\u003e `https://xxxx/customFolder/renamedFile.jpg`\n\n#### Upload folder with rename\n`ossr ./localFolder onlineFolder/` ------\u003e `https://xxxx/onlineFolder/\u003clocalFolder**\u003e`\n![upload](https://raw.githubusercontent.com/myxvisual/ossr/master/images//upload.gif)\n\n#### Delete\n`ossr -d remoteFileOrFolder`\n![delete](https://raw.githubusercontent.com/myxvisual/ossr/master/images//delete.gif)\n\n### Help\n`ossr -h`\n\n## Module Usage\n``` js\nimport * as ossr from \"../bin/ossr\";\n\nasync function test() {\n    // ossr.setConfig({\n    //     accessKeyId: \"\",\n    //     accessKeySecret: \"\"\n    // });\n\n    let existRes = false;\n    const uploadRes = await ossr.ossUpload(\"../bin\", \"ossr/\");\n    // console.log(uploadRes);\n    existRes = await ossr.ossIsExist(\"ossr/ossr.js\");\n    // console.log(existRes);\n    const deleteRes = await ossr.ossDelete(\"ossr/\");\n    // console.log(\"deleteRes\", deleteRes);\n}\n\ntest()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyxvisual%2Fossr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyxvisual%2Fossr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyxvisual%2Fossr/lists"}