{"id":48270897,"url":"https://github.com/no-src/replacer","last_synced_at":"2026-04-04T22:14:38.925Z","repository":{"id":206246233,"uuid":"713562146","full_name":"no-src/replacer","owner":"no-src","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-25T01:35:51.000Z","size":49,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T11:52:19.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/no-src.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-02T19:16:59.000Z","updated_at":"2025-11-25T01:35:47.000Z","dependencies_parsed_at":"2023-11-24T17:28:25.697Z","dependency_job_id":"2d1b8cc3-f45d-42ab-92f5-cbfa2eb598c9","html_url":"https://github.com/no-src/replacer","commit_stats":null,"previous_names":["no-src/replacer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/no-src/replacer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Freplacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Freplacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Freplacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Freplacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/no-src","download_url":"https://codeload.github.com/no-src/replacer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/no-src%2Freplacer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":[],"created_at":"2026-04-04T22:14:37.391Z","updated_at":"2026-04-04T22:14:38.920Z","avatar_url":"https://github.com/no-src.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replacer\n\n[![Build](https://img.shields.io/github/actions/workflow/status/no-src/replacer/go.yml?branch=main)](https://github.com/no-src/replacer/actions)\n[![License](https://img.shields.io/github/license/no-src/replacer)](https://github.com/no-src/replacer/blob/main/LICENSE)\n[![Go Reference](https://pkg.go.dev/badge/github.com/no-src/replacer.svg)](https://pkg.go.dev/github.com/no-src/replacer)\n[![Go Report Card](https://goreportcard.com/badge/github.com/no-src/replacer)](https://goreportcard.com/report/github.com/no-src/replacer)\n[![codecov](https://codecov.io/gh/no-src/replacer/graph/badge.svg?token=aJZPSpxpK7)](https://codecov.io/gh/no-src/replacer)\n[![Release](https://img.shields.io/github/v/release/no-src/replacer)](https://github.com/no-src/replacer/releases)\n\nThe replacer is a configuration-based file replace tool.\n\n## Installation\n\nThe first need [Go](https://go.dev/doc/install) installed (**version 1.21+ is required**), then you can use the below\ncommand to install `replacer`.\n\n```bash\ngo install github.com/no-src/replacer/...@latest\n```\n\n### Run In Docker\n\nYou can use the [build-docker.sh](/scripts/build-docker.sh) script to build the docker image and you should clone this\nrepository and `cd` to the root path of the repository first.\n\n```bash\n$ ./scripts/build-docker.sh\n```\n\nOr pull the docker image directly from [DockerHub](https://hub.docker.com/r/nosrc/replacer) with the command below.\n\n```bash\n$ docker pull nosrc/replacer\n```\n\n## Quick Start\n\nCreate a config file named `replacer.yaml`, content is as follows\n\n```yaml\nname: the configuration of replacer\nversion: v0.0.1\nitems:\n  - name: replace domain\n    paths:\n      - \"*/test.yaml\"\n    rules:\n      - old:\n          - 127.0.0.1:8888\n          - 127.0.0.1:9999\n        new:\n          test: test-github.com\n          uat: uat-github.com\n          product: product-github.com\n```\n\nNow running the command below start to replace the files.\n\n```bash\n$ replacer -root=\"./testdata/testfile\" -tag=test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno-src%2Freplacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fno-src%2Freplacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno-src%2Freplacer/lists"}