{"id":22173227,"url":"https://github.com/litejs/s3","last_synced_at":"2025-07-26T15:31:23.020Z","repository":{"id":57700063,"uuid":"484979968","full_name":"litejs/s3","owner":"litejs","description":"Dependency-free S3 client when full SDK is not needed","archived":false,"fork":false,"pushed_at":"2024-09-24T16:04:39.000Z","size":65,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-20T21:05:09.448Z","etag":null,"topics":["litejs","s3"],"latest_commit_sha":null,"homepage":"https://litejs.com","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/litejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"lauriro"}},"created_at":"2022-04-24T09:16:07.000Z","updated_at":"2024-09-24T16:04:43.000Z","dependencies_parsed_at":"2024-10-30T20:20:57.100Z","dependency_job_id":null,"html_url":"https://github.com/litejs/s3","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"feb459e4ec95e015894d144c1518814b4599211a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fs3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fs3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fs3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fs3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litejs","download_url":"https://codeload.github.com/litejs/s3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227558487,"owners_count":17786659,"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":["litejs","s3"],"created_at":"2024-12-02T07:31:23.555Z","updated_at":"2025-07-26T15:31:23.014Z","avatar_url":"https://github.com/litejs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/lauriro","https://www.buymeacoffee.com/lauriro"],"categories":[],"sub_categories":[],"readme":"\n[1]: https://badgen.net/coveralls/c/github/litejs/s3\n[2]: https://coveralls.io/r/litejs/s3\n[3]: https://badgen.net/packagephobia/install/@litejs/s3\n[4]: https://packagephobia.now.sh/result?p=@litejs/s3\n[5]: https://badgen.net/badge/icon/Buy%20Me%20A%20Tea/orange?icon=kofi\u0026label\n[6]: https://www.buymeacoffee.com/lauriro\n\n\nLiteJS S3 \u0026ndash; [![Coverage][1]][2] [![Size][3]][4] [![Buy Me A Tea][5]][6]\n=========\n\nDependency-free S3 client when full SDK is not needed.\n\n\n### Usage\n\n\n```javascript\nvar S3 = require(\"@litejs/s3\")\n, s3client = new S3({ accessId: ID, secret: SECRET, region: \"us-east-2\", endpoint: \"BUCKET.s3.us-east-2.amazonaws.com\" })\n\n// More client initialization examples\n, awsDeprecatedPathStyle = new S3({ region: AWS_REGION, accessId: ID, secret: SECRET, bucket: AWS_BUCKET })\n, googleCloudStorage = new S3({ accessId: ID, secret: SECRET, region: \"auto\", endpoint: \"storage.googleapis.com\" })\n, cloudflareR2 = new S3({ accessId: ID, secret: SECRET, region: \"auto\", endpoint: \"MY-ID.r2.cloudflarestorage.com\" })\n\n\n// Use with await (throws without catch)\nvar data = await s3client.get(\"test/hello.txt\")\n\n// .. or with callback\ns3client.get(\"test/hello.txt\", function(err, data) {\n\tconsole.log(\"Got file\", data)\n})\n\n// .. or stream to client\nrequire(\"http\").createServer(function(req, res) {\n\ts3client.get(\"server-test.txt\", res).catch(function(err) {\n\t\tres.end(err.message)\n\t})\n})\n\n// bucket exists\ns3client.stat(\"test/\")\ns3client.list(\"test/\", { maxKeys: 20 })\ns3client.stat(\"test/hello.txt\")\ns3client.put(\"test/hello.txt\", \"Hello world!\", {\n\tmeta: { key: \"User custom metadata\" },\n}, function(err) {})\ns3client.del(\"test/hello.txt\")\n```\n\n\u003e Copyright (c) 2022-2025 Lauri Rooden \u0026lt;lauri@rooden.ee\u0026gt;  \n[MIT License](https://litejs.com/MIT-LICENSE.txt) |\n[GitHub repo](https://github.com/litejs/s3) |\n[npm package](https://npmjs.org/package/@litejs/s3) |\n[Buy Me A Tea][6]\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitejs%2Fs3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitejs%2Fs3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitejs%2Fs3/lists"}