{"id":15828977,"url":"https://github.com/afeiship/next-s3-helper","last_synced_at":"2026-04-20T09:33:46.477Z","repository":{"id":57122884,"uuid":"309309417","full_name":"afeiship/next-s3-helper","owner":"afeiship","description":"Aws s3 helper for next.","archived":false,"fork":false,"pushed_at":"2021-01-09T08:36:18.000Z","size":462,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T09:54:10.089Z","etag":null,"topics":["aws","aws-cli","bucket","cli","helper","next","oss","s3"],"latest_commit_sha":null,"homepage":"","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-11-02T08:48:44.000Z","updated_at":"2023-02-17T00:35:51.000Z","dependencies_parsed_at":"2022-08-24T14:59:32.596Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-s3-helper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-s3-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-s3-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-s3-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-s3-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-s3-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-s3-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-s3-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["aws","aws-cli","bucket","cli","helper","next","oss","s3"],"created_at":"2024-10-05T11:00:25.845Z","updated_at":"2026-04-20T09:33:46.457Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-s3-helper\n\u003e Aws s3 helper for next.\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-s3-helper\n```\n\n## apis\n| api  | params | description        |\n| ---- | ------ | ------------------ |\n| puts | -      | s3 put objects.    |\n| dels | -      | s3 delete objects. |\n| list | -      | s3 list objects.   |\n\n## usage\n```js\nimport NxS3Helper from '@jswork/next-s3-helper';\n\nconst options = {\n  signatureVersion: 'v4',\n  region: 'cn-north-1',\n  endpoint: 'https://s3.cn-north-1.amazonaws.com.cn',\n  accessKeyId: process.env['AWS_ACCESS_KEY_ID'],\n  secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY']\n};\n\nconst s3helper = new NxS3Helper(options);\n\n\n// puts\ns3helper\n  .puts(['./dist/**'], {\n    ACL: 'public-read',\n    Bucket: 'course-assets.saybot.net',\n    context: {\n      local: 'dist',\n      remote: 'courseware-preview'\n    }\n  })\n  .then((res) =\u003e {\n    console.log(res);\n  });\n\n// dels\ns3helper\n  .dels({\n    Bucket: 'course-assets.saybot.net',\n    Prefix: 'courseware-preview'\n  }).then(res=\u003e{\n    console.log(res);\n  })\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-s3-helper/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-s3-helper\n[version-url]: https://npmjs.org/package/@jswork/next-s3-helper\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-s3-helper\n[license-url]: https://github.com/afeiship/next-s3-helper/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-s3-helper\n[size-url]: https://github.com/afeiship/next-s3-helper/blob/master/dist/next-s3-helper.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-s3-helper\n[download-url]: https://www.npmjs.com/package/@jswork/next-s3-helper\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-s3-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-s3-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-s3-helper/lists"}