{"id":19585582,"url":"https://github.com/tencentyun/cos-nodejs-sdk-v5","last_synced_at":"2025-05-15T14:04:21.778Z","repository":{"id":38272192,"uuid":"84531673","full_name":"tencentyun/cos-nodejs-sdk-v5","owner":"tencentyun","description":"腾讯云 COS Nodejs SDK（XML API）","archived":false,"fork":false,"pushed_at":"2025-05-14T09:05:38.000Z","size":1528,"stargazers_count":237,"open_issues_count":9,"forks_count":80,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-05-14T10:22:57.845Z","etag":null,"topics":["cos","cos-sdk","qcloud","sdk","tencent"],"latest_commit_sha":null,"homepage":"https://cloud.tencent.com/product/cos","language":"JavaScript","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/tencentyun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-03-10T07:24:11.000Z","updated_at":"2025-05-14T09:05:41.000Z","dependencies_parsed_at":"2023-01-31T08:15:47.729Z","dependency_job_id":"c0c7b238-0a8e-4565-9ec7-f4181e021370","html_url":"https://github.com/tencentyun/cos-nodejs-sdk-v5","commit_stats":{"total_commits":483,"total_committers":23,"mean_commits":21.0,"dds":"0.45341614906832295","last_synced_commit":"2d1313e7651170e7efbc6ae2132b95926abe4f76"},"previous_names":[],"tags_count":107,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tencentyun%2Fcos-nodejs-sdk-v5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tencentyun%2Fcos-nodejs-sdk-v5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tencentyun%2Fcos-nodejs-sdk-v5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tencentyun%2Fcos-nodejs-sdk-v5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tencentyun","download_url":"https://codeload.github.com/tencentyun/cos-nodejs-sdk-v5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254152509,"owners_count":22023437,"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":["cos","cos-sdk","qcloud","sdk","tencent"],"created_at":"2024-11-11T07:56:05.135Z","updated_at":"2025-05-15T14:04:21.760Z","avatar_url":"https://github.com/tencentyun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cos-nodejs-sdk-v5\n\n腾讯云 COS Nodejs SDK（[XML API](https://cloud.tencent.com/document/product/436/7751)）\n\n[releases and changelog](https://github.com/tencentyun/cos-nodejs-sdk-v5/releases)\n\n## install\n\n[npm 地址](https://www.npmjs.com/package/cos-nodejs-sdk-v5)\n\n```\nnpm i cos-nodejs-sdk-v5 --save\n```\n\n## demo\n\n```javascript\n// 引入模块\nvar COS = require('cos-nodejs-sdk-v5');\n// 创建实例\nvar cos = new COS({\n  SecretId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n  SecretKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n});\n\n// 存储桶名称，由bucketname-appid 组成，appid必须填入，可以在COS控制台查看存储桶名称。 https://console.cloud.tencent.com/cos5/bucket\nvar Bucket = 'test-1250000000';\n// 存储桶Region可以在COS控制台指定存储桶的概览页查看 https://console.cloud.tencent.com/cos5/bucket/\n// 关于地域的详情见 https://cloud.tencent.com/document/product/436/6224\nvar Region = 'ap-guangzhou';\n\n// 高级上传\ncos.uploadFile(\n  {\n    Bucket: Bucket,\n    Region: Region,\n    Key: '1.zip',\n    FilePath: './1.zip', // 本地文件地址，需自行替换\n    SliceSize: 1024 * 1024 * 5, // 触发分块上传的阈值，超过5MB使用分块上传，非必须\n  },\n  function (err, data) {\n    console.log(err, data);\n  }\n);\n```\n\n## 说明文档\n\n[使用例子](demo/demo.js)\n\n[快速入门](https://cloud.tencent.com/document/product/436/8629)\n\n[接口文档](https://cloud.tencent.com/document/product/436/12264)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencentyun%2Fcos-nodejs-sdk-v5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftencentyun%2Fcos-nodejs-sdk-v5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencentyun%2Fcos-nodejs-sdk-v5/lists"}