{"_id":"@dependahub/aws-s3","_rev":"3-b5f0681d3d7d35d8e0a905565f36597c","name":"@dependahub/aws-s3","dist-tags":{"latest":"1.1.1"},"versions":{"0.9.1":{"name":"@dependahub/aws-s3","version":"0.9.1","keywords":["aws","s3"],"author":{"name":"DependaHub"},"license":"MIT","_id":"@dependahub/aws-s3@0.9.1","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"homepage":"https://github.com/dependahub/aws-s3#readme","bugs":{"url":"https://github.com/dependahub/aws-s3/issues"},"xo":{"rules":{"capitalized-comments":"off"},"ignore":["@types"]},"dist":{"shasum":"733f92fe406a11c96027ad79972c5c7eedaeab0b","tarball":"https://registry.npmjs.org/@dependahub/aws-s3/-/aws-s3-0.9.1.tgz","fileCount":5,"integrity":"sha512-d/x8CJonBf0UOAo60x37po+PWhY6NWWAlfo43t7178ZgCstEoqJk+eE6Fxfcr7kGrEeFrsIEkZcK4Vh6xLjd7g==","signatures":[{"sig":"MEUCIQC2vp2IOYCM/2rHu2bJXI3UW7G5ahGvLL0wdANZ5HhvJgIgJnLIAy02Hr9Yqn42OJDPJEeRBh8qGAFVfxQQCjgW1Hc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9372},"main":"src/index.js","type":"module","types":"@types/index.d.ts","gitHead":"1216287914026cefd931539270419d185bcd6dc8","scripts":{"test":"xo && ava","build":"rm -rf @types && tsc"},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"repository":{"url":"git+https://github.com/dependahub/aws-s3.git","type":"git"},"_npmVersion":"11.2.0","description":"AWS S3 操作モジュール","directories":{},"_nodeVersion":"20.18.0","dependencies":{"@aws-sdk/client-s3":"^3.782.0","@aws-sdk/credential-providers":"^3.782.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","ava":"^6.2.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aws-s3_0.9.1_1745171636659_0.9952820428312781","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dependahub/aws-s3","version":"1.0.1","keywords":["aws","s3"],"author":{"name":"DependaHub"},"license":"MIT","_id":"@dependahub/aws-s3@1.0.1","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"homepage":"https://github.com/dependahub/aws-s3#readme","bugs":{"url":"https://github.com/dependahub/aws-s3/issues"},"xo":{"rules":{"capitalized-comments":"off"},"ignore":["@types"]},"dist":{"shasum":"5482e742e873ccb9f34aed6786f1bede6d0b13a4","tarball":"https://registry.npmjs.org/@dependahub/aws-s3/-/aws-s3-1.0.1.tgz","fileCount":7,"integrity":"sha512-WZHLQHmuQqGzLbEhwPx5sAMIJiFdwhwqi4UVsR+HXpHVPUj3tRu4PlAOyh0sy3/lnN1D5EI4nbLTU3ASa6lFpQ==","signatures":[{"sig":"MEUCIE6mzcmlxmUmIDhJHF1+brYzWw6VlOQC5cQ61IITEUbcAiEAgrwPSoN2XQhoBWY6C3TKz9gODMzUl+cNe4wwc6RMJLQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15485},"main":"src/index.js","type":"module","types":"@types/index.d.ts","gitHead":"be7c8bac314231fca67579d60c1b885c07b0c762","scripts":{"test":"xo && ava","build":"rm -rf @types && tsc"},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"repository":{"url":"git+https://github.com/dependahub/aws-s3.git","type":"git"},"_npmVersion":"10.9.2","description":"AWS S3 操作モジュール","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@aws-sdk/client-s3":"^3.782.0","@aws-sdk/credential-providers":"^3.782.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","ava":"^6.2.0","typescript":"^5.8.3","@types/node":"^24.3.1"},"_npmOperationalInternal":{"tmp":"tmp/aws-s3_1.0.1_1757467914584_0.07579869474286993","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@dependahub/aws-s3","version":"1.1.1","description":"AWS S3 操作モジュール","license":"MIT","author":{"name":"DependaHub"},"types":"@types/index.d.ts","type":"module","main":"src/index.js","scripts":{"test":"xo && ava","build":"rm -rf @types && tsc"},"dependencies":{"@aws-sdk/client-s3":"^3.782.0","@aws-sdk/credential-providers":"^3.782.0"},"devDependencies":{"@types/node":"^24.3.1","ava":"^6.2.0","typescript":"^5.8.3","xo":"^0.60.0"},"homepage":"https://github.com/dependahub/aws-s3#readme","bugs":{"url":"https://github.com/dependahub/aws-s3/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/dependahub/aws-s3.git"},"keywords":["aws","s3"],"xo":{"ignore":["@types"],"rules":{"capitalized-comments":"off"}},"gitHead":"e7add24ee8d2993d5d4310910c58e35153dc1643","_id":"@dependahub/aws-s3@1.1.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-m8qUVNT1dTsMaEDnBN+UuuQ2bfHEphg+e3wr1GkGQSh8r0QF/pa1iS2r+T4gscA5itkmuk1S+cf50FhdP8d4xw==","shasum":"6d142649b94e7a20f0c7bf31a22d0e9ed794afa1","tarball":"https://registry.npmjs.org/@dependahub/aws-s3/-/aws-s3-1.1.1.tgz","fileCount":7,"unpackedSize":17106,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCID/nTJF9rMOLtzpf6Oed5Tli8ANShXYuWqHyCaNqhkQIhAJTuZMwG05K9JMhcHM2XbkCQKPNxr3gddXOeK0+QFwtB"}]},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"directories":{},"maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aws-s3_1.1.1_1773815222637_0.8895553122438391"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-20T17:53:56.595Z","modified":"2026-03-18T06:27:02.885Z","0.9.1":"2025-04-20T17:53:56.843Z","1.0.1":"2025-09-10T01:31:54.752Z","1.1.1":"2026-03-18T06:27:02.765Z"},"bugs":{"url":"https://github.com/dependahub/aws-s3/issues"},"author":{"name":"DependaHub"},"license":"MIT","homepage":"https://github.com/dependahub/aws-s3#readme","keywords":["aws","s3"],"repository":{"type":"git","url":"git+https://github.com/dependahub/aws-s3.git"},"description":"AWS S3 操作モジュール","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"readme":"[![Node.js Version](https://img.shields.io/badge/node-22.x-brightgreen.svg)](https://nodejs.org/)\n[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray&logoSize=auto)](https://github.com/xojs/xo)\n\n# aws-s3\n\nAWS S3 操作モジュール\n\n## Example\n\n```javascript\nimport {s3} from '@dependahub/aws-s3';\n\n// 初期設定 - profile と region を指定できます。\ns3.configure({\n  profile: 'my-profile',\n  region: 'ap-northeast-1',\n});\n\n// profile/リージョンの異なるS3を操作する場合は別のインスタンスを作成して下さい。\nconst s3Oregon = s3.createClient({\n  region: 'us-west-2',\n});\n\n// ファイル名一覧取得\nconst files = await s3.index({\n  bucket: 'some-bucket',\n  prefix: 'path/to/dir',\n});\n\n// ファイルの存在確認\nconst isExist = await s3.exists({\n  bucket: 'some-bucket',\n  key: 'filePath',\n});\n\n// ファイルメタデータの取得\nconst file = await s3.head({\n  bucket: 'some-bucket',\n  key: 'filePath',\n});\n\n// ファイル内容の取得\nconst file = await s3.get({\n  bucket: 'some-bucket',\n  key: 'filePath',\n});\n\n// ファイルの保存\nawait s3.put({\n  bucket: 'some-bucket',\n  key: 'filePath',\n  file: file,\n  metadata: {\n    key: 'value',\n  }\n});\n\n// ファイルの削除\nawait s3.delete({\n  bucket: 'some-bucket',\n  key: 'filePath',\n});\n\n// ファイルのコピー\nawait s3.copy({\n  fromBucket: 'some-bucket',\n  fromKey: 'filePath',\n  toBucket: 'some-bucket',\n  toKey: 'some-bucket-copy',\n});\n```\n","readmeFilename":"README.md"}