{"id":22367709,"url":"https://github.com/hugojosefson/sponge","last_synced_at":"2026-05-18T17:03:42.286Z","repository":{"id":243917320,"uuid":"813772857","full_name":"hugojosefson/sponge","owner":"hugojosefson","description":"Reimplementation of sponge from moreutils, for Deno.","archived":false,"fork":false,"pushed_at":"2024-06-11T23:18:05.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T23:42:11.422Z","etag":null,"topics":["deno","moreutils","sponge","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@moreutils/sponge","language":"TypeScript","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/hugojosefson.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":"2024-06-11T18:02:10.000Z","updated_at":"2024-06-11T23:18:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f5a7f8d-f34c-4baa-b38c-28ceba3ff116","html_url":"https://github.com/hugojosefson/sponge","commit_stats":null,"previous_names":["hugojosefson/sponge"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hugojosefson/sponge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fsponge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fsponge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fsponge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fsponge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugojosefson","download_url":"https://codeload.github.com/hugojosefson/sponge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fsponge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","moreutils","sponge","typescript"],"created_at":"2024-12-04T18:20:35.297Z","updated_at":"2026-05-18T17:03:42.250Z","avatar_url":"https://github.com/hugojosefson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sponge\n\nReimplementation of `sponge(1)` from\n[moreutils](https://joeyh.name/code/moreutils/), for Deno.\n\n[![JSR](https://jsr.io/badges/@moreutils/sponge)](https://jsr.io/@moreutils/sponge)\n[![CI](https://github.com/hugojosefson/sponge/actions/workflows/deno.yaml/badge.svg)](https://github.com/hugojosefson/sponge/actions/workflows/deno.yaml)\n\n## Requirements\n\nRequires [Deno](https://deno.land/) v1.44.1 or later.\n\n## Usage\n\n### Soak up stdin, write to stdout\n\n```sh\ndeno run jsr:@moreutils/sponge\n```\n\n### Soak up stdin, write to a file\n\n```sh\ndeno run --allow-write=file.txt jsr:@moreutils/sponge file.txt\n```\n\n### Soak up stdin, append to a file\n\n```sh\ndeno run --allow-write=file.txt jsr:@moreutils/sponge -a file.txt\n```\n\n## Example usage\n\nGiven a file `file.txt` with the following contents:\n\n```\nThe quick brown fox jumps over the lazy dog.\n\nThe foo bar baz.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n```\n\nRunning this command, will replace its contents with the same, piped through\n`sed`:\n\n```sh\ncat file.txt |\nsed -e 's/foo/bar/' |\ndeno run --allow-write=file.txt jsr:@moreutils/sponge file.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fsponge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugojosefson%2Fsponge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fsponge/lists"}