{"id":20541519,"url":"https://github.com/cnpm/cos-cnpm","last_synced_at":"2025-08-12T21:06:06.577Z","repository":{"id":20615506,"uuid":"90434712","full_name":"cnpm/cos-cnpm","owner":"cnpm","description":"tencent-cloud cos wrapper for cnpm","archived":false,"fork":false,"pushed_at":"2022-11-05T10:24:40.000Z","size":33,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-09T03:45:30.924Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cnpm.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T03:29:58.000Z","updated_at":"2022-09-21T02:16:31.000Z","dependencies_parsed_at":"2023-01-13T21:03:34.519Z","dependency_job_id":null,"html_url":"https://github.com/cnpm/cos-cnpm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cnpm/cos-cnpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnpm%2Fcos-cnpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnpm%2Fcos-cnpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnpm%2Fcos-cnpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnpm%2Fcos-cnpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnpm","download_url":"https://codeload.github.com/cnpm/cos-cnpm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnpm%2Fcos-cnpm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269689706,"owners_count":24459697,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-16T01:24:07.034Z","updated_at":"2025-08-12T21:06:06.547Z","avatar_url":"https://github.com/cnpm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cos-cnpm\n\nfs storage wrapper for cnpm\n\n## Installation\n\n```bash\n$ npm install cos-cnpm\n```\n\n## Warning!!!\n\nOnly support singleton. Don't initialize two `cos-cnpm` instance.\n\n## Usage\n\n```js\nimport COSClient from 'cos-cnpm';\n\nconfig.nfs = {\n  client: new COSClient({\n    secretId: '',\n    secretKey: '',\n    bucket: '',\n    region: '',\n  }),\n  // dir: join(config.dataDir, 'nfs'),\n};\n```\n\n## API\n\nAll the APIs are following [cnpm nfs guide](https://github.com/cnpm/cnpmjs.org/wiki/NFS-Guide).\n\n- `upload`: upload a file from filepath \n\n- `uploadBuffer`: upload a file from buffer\n\n- `download`: download file by key\n\n- `remove`: remove file by key\n\n- `uploadBytes`: upload bytes\n\n- `appendBytes`: append bytes\n\n- `readBytes`: read bytes\n\n- `list`: list files by prefix\n\n- `url`: get download url\n\n- `urls`: get download urls\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnpm%2Fcos-cnpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnpm%2Fcos-cnpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnpm%2Fcos-cnpm/lists"}