{"id":15862186,"url":"https://github.com/afeiship/next-tx-cos-sdk","last_synced_at":"2026-04-11T21:40:02.061Z","repository":{"id":57112669,"uuid":"254855301","full_name":"afeiship/next-tx-cos-sdk","owner":"afeiship","description":"Tencent cos-nodejs-sdk wrapper.","archived":false,"fork":false,"pushed_at":"2020-11-21T03:13:24.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:55:47.801Z","etag":null,"topics":["cos","next","sdk","tencent","tx"],"latest_commit_sha":null,"homepage":null,"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-11T11:42:39.000Z","updated_at":"2020-11-21T03:13:26.000Z","dependencies_parsed_at":"2022-08-21T11:31:17.247Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-tx-cos-sdk","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/afeiship%2Fnext-tx-cos-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-tx-cos-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-tx-cos-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-tx-cos-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-tx-cos-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709935,"owners_count":20821298,"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","next","sdk","tencent","tx"],"created_at":"2024-10-05T22:25:34.749Z","updated_at":"2026-04-11T21:39:57.028Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-tx-cos-sdk\n\u003e Tencent cos-nodejs-sdk wrapper.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-tx-cos-sdk\n```\n\n## apis\n| api | params | description   |\n| --- | ------ | ------------- |\n| get | -      | desc balabala |\n| put | -      | desc balabala |\n| del | -      | desc balabala |\n\n## usage\n```js\nimport NxTxCosSdk from '@jswork/next-tx-cos-sdk';\n\nconst config = {\n  id: 'xxx',\n  SecretId: 'xxxx',\n  SecretKey: 'xxxxx'\n};\n\n// https://console.cloud.tencent.com/cos5/bucket\nconst nxCos = new NxTxCosSdk(config);\n\n// create\nnxCos\n  .get({\n    Bucket: 'img3-1301823685',\n    Region: 'ap-chengdu'\n  })\n  .then((res) =\u003e {\n    console.log(res);\n  });\n\n// // get\n// nxCos.get().then((res) =\u003e {\n//   console.log(res);\n// });\n\n// //delete\n// nxCos\n//   .del({\n//     Bucket: 'img1-xxx',\n//     Region: 'ap-chengdu'\n//   })\n//   .catch((err) =\u003e {\n//     console.log(err);\n//   });\n```\n\n## resources\n- https://github.com/sindresorhus/pify\n- https://cloud.tencent.com/document/product/436/8629\n- https://cloud.tencent.com/document/product/436/36119\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-tx-cos-sdk/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-sdk\n[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-sdk\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-sdk\n[license-url]: https://github.com/afeiship/next-tx-cos-sdk/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-sdk\n[size-url]: https://github.com/afeiship/next-tx-cos-sdk/blob/master/dist/next-tx-cos-sdk.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-sdk\n[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-sdk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-tx-cos-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-tx-cos-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-tx-cos-sdk/lists"}