{"id":23900144,"url":"https://github.com/mathieuloutre/mock-aws-s3","last_synced_at":"2025-04-13T00:47:05.934Z","repository":{"id":10502727,"uuid":"12687479","full_name":"MathieuLoutre/mock-aws-s3","owner":"MathieuLoutre","description":"Library to mock the AWS SDK for Node.js","archived":false,"fork":false,"pushed_at":"2023-03-04T05:51:38.000Z","size":680,"stargazers_count":113,"open_issues_count":19,"forks_count":72,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T00:46:56.262Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathieuLoutre.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2013-09-08T20:58:14.000Z","updated_at":"2024-10-27T01:15:32.000Z","dependencies_parsed_at":"2024-06-18T12:32:12.973Z","dependency_job_id":"3638da55-436d-411c-b122-e045cb3f0fc0","html_url":"https://github.com/MathieuLoutre/mock-aws-s3","commit_stats":{"total_commits":117,"total_committers":36,"mean_commits":3.25,"dds":0.7948717948717949,"last_synced_commit":"ef666a4de300b274f1c101269a7e2b3e3fb012f9"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuLoutre%2Fmock-aws-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuLoutre%2Fmock-aws-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuLoutre%2Fmock-aws-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuLoutre%2Fmock-aws-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathieuLoutre","download_url":"https://codeload.github.com/MathieuLoutre/mock-aws-s3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650433,"owners_count":21139672,"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":[],"created_at":"2025-01-04T19:14:37.168Z","updated_at":"2025-04-13T00:47:05.915Z","avatar_url":"https://github.com/MathieuLoutre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mock AWS S3 SDK\n\nThis is a very simple interface that mocks the AWS SDK for Node.js. The implementation is incomplete but most basic features are supported.\n\nAvailable:\n- createBucket\n- deleteBucket\n- listObjects\n- listObjectsV2\n- deleteObjects\n- deleteObject\n- getObject\n- headObject\n- putObject\n- copyObject\n- getObjectTagging\n- putObjectTagging\n- upload\n- getSignedUrl\n\nIt uses a directory to mock a bucket and its content.\n\nIf you'd like to see some more features or you have some suggestions, feel free to use the issues or submit a pull request.\n\n## Release History\n* 2021-04-10   v4.0.2   Update dependencies, remove extra log and use proper path concat\n* 2020-01-30   v4.0.0   Fix promises and update packages with various contributions.\n* 2018-06-16   v3.0.0   Contributions from @benedict-wellard and @telenor-digital-asia adding support for promises and deleteBucket\n* 2017-08-11   v2.6.0   Contributions from @pamelafox and @fkleon adding support for listObjectsV2, tagging and more useful debug info returned\n* 2017-05-31   v2.5.1   Fix bug when statSync was called on non existing files, spotted by @AllanHodkinson\n* 2017-05-20   v2.5.0   Set LastModified on getObject by @stujo, support for custom metadata on get/head by @rgparkins and putObject returns some data on error by @pamelafox\n* 2017-02-02   v2.4.0   Account for no existing keys when getting an object by @derPuntigamer\n* 2016-06-03   v2.3.0   Add createBucket method and tests by @neilstuartcraig\n* 2016-05-25   v2.2.1   Add Size attribute by @aldafu\n* 2016-04-25   v2.2.0   Add MaxKey options in listObject by @hauboldj\n* 2016-01-18   v2.1.0   Fix markers on listObjects (by @wellsjo) and add send method (by @AllieRays and @IonicaBizau)\n* 2015-11-04   v2.0.0   Static basePath configuration, bound params (by @CJNE) and match upload API (by @kyleseely)\n* 2015-10-25   v1.1.0   Removed because of potential breaking change with bound params\n* 2015-09-24   v1.0.0   Breaking changes and awesome PR to fix API inconsistencies by @irothschild\n* 2015-08-27   v0.5.0   Refactor and default options by @whitingj\n* 2015-07-28   v0.4.0   Add headObject method by @mdlavin\n* 2015-07-21   v0.3.0   Add CommonPrefixes to listObjects by @jakepruitt\n* 2015-03-15   v0.2.7   Mock out AWS' config submodule by @necaris\n* 2015-03-13   v0.2.6   Partial match support and ContentLength by @mick\n* 2015-03-03   v0.2.5   Allow string and fix tests by @lbud\n* 2015-02-05   v0.2.4   Fix url encoding for copy by @ahageali\n* 2015-01-22   v0.2.3   Support for copyObject\n* 2014-02-02   v0.2.1   Support for deleteObject\n* 2014-01-08   v0.2.0   Support streams for getObject/putObject\n* 2013-10-24   v0.1.2   Fix isTruncated typo\n* 2013-10-09   v0.1.1   Add LastModified to listObject\n* 2013-08-09   v0.1.0   First release\n\n## Example\n\n### Instantiate\n\n```js\nvar AWSMock = require('mock-aws-s3');\nAWSMock.config.basePath = '/tmp/buckets/' // Can configure a basePath for your local buckets\nvar s3 = AWSMock.S3({\n\tparams: { Bucket: 'example' }\n});\n```\n\n### PutObject/ListObjects\n\n```js\ns3.putObject({Key: 'sea/animal.json', Body: '{\"is dog\":false,\"name\":\"otter\",\"stringified object?\":true}'}, function(err, data) {\n\ts3.listObjects({Prefix: 'sea'}, function (err, data) {\n\t\tconsole.log(data);\n\t});\n});\n```\n\n### CreateBucket\n\n```js\nvar params = { Bucket: 'example' };\ns3.createBucket(params, function(err) {\n    if(err) {\n        console.error(err);\n    }\n});\n```\n\n### DeleteBucket\n\n```js\nvar params = { Bucket: 'example' };\ns3.deleteBucket(params, function(err) {\n    if(err) {\n        console.error(err);\n    }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieuloutre%2Fmock-aws-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieuloutre%2Fmock-aws-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieuloutre%2Fmock-aws-s3/lists"}