{"id":21004695,"url":"https://github.com/flaque/pre","last_synced_at":"2025-03-13T14:22:19.098Z","repository":{"id":80716081,"uuid":"131066715","full_name":"Flaque/pre","owner":"Flaque","description":"A cli that adds text to the beginning of files","archived":false,"fork":false,"pushed_at":"2018-04-25T22:09:22.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:13:54.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/Flaque.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}},"created_at":"2018-04-25T21:40:13.000Z","updated_at":"2018-08-16T01:24:49.000Z","dependencies_parsed_at":"2023-04-01T10:47:06.494Z","dependency_job_id":null,"html_url":"https://github.com/Flaque/pre","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fpre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fpre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fpre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fpre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaque","download_url":"https://codeload.github.com/Flaque/pre/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419477,"owners_count":20287897,"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":"2024-11-19T08:37:31.016Z","updated_at":"2025-03-13T14:22:19.072Z","avatar_url":"https://github.com/Flaque.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre \n\nPre is a simple command line tool for adding text to the beginning of a file. \n\nYou previously could do this [\"easily\"](https://media.giphy.com/media/ANbD1CCdA3iI8/giphy.gif) with `sed`:\n\n```bash\n$ sed -i.old '1s;^;to be prepended;' inFile\n```\n\nBut now you can just do it with `pre`:\n\n```bash \n$ echo \"some text in front\" | pre someFile.txt | sponge someFile.txt\n```\n\nIf you don't have sponge, you can get it from `moreutils`:\n\n```\n# mac\nbrew install moreutils\n\n# ubuntu/linux\napt-get install moreutils\n```\n\n## Install \n\nIf you have go, you can install this with:\n\n```\ngo get -u github.com/Flaque/pre\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fpre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaque%2Fpre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fpre/lists"}