{"id":23046662,"url":"https://github.com/drewalth/onsave","last_synced_at":"2025-04-03T02:43:21.795Z","repository":{"id":264245984,"uuid":"892775216","full_name":"drewalth/onsave","owner":"drewalth","description":"An unsophisticated tool to watch a directory and run a command when a file is saved.","archived":false,"fork":false,"pushed_at":"2024-11-22T20:57:25.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T16:45:20.652Z","etag":null,"topics":["dx","go","golang"],"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/drewalth.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":"2024-11-22T18:52:22.000Z","updated_at":"2024-11-22T20:57:28.000Z","dependencies_parsed_at":"2024-11-25T22:34:00.511Z","dependency_job_id":null,"html_url":"https://github.com/drewalth/onsave","commit_stats":null,"previous_names":["drewalth/onsave"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewalth%2Fonsave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewalth%2Fonsave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewalth%2Fonsave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewalth%2Fonsave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drewalth","download_url":"https://codeload.github.com/drewalth/onsave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927809,"owners_count":20856193,"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":["dx","go","golang"],"created_at":"2024-12-15T22:28:43.843Z","updated_at":"2025-04-03T02:43:21.770Z","avatar_url":"https://github.com/drewalth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onsave\n\nAn unsophisticated tool to watch a directory and run a command when a file is saved.\n\n## Usage\n\n```\nonsave \u003cdirectory-to-watch\u003e \u003ccommand-to-run\u003e\n```\n\n## Example\n\n```\nonsave ./src \"npm run format\"\n```\n\nThis will run `npm run format` whenever a file in the `./src` directory is saved.\n\n## Installation\n\n```\ngo install onsave.go\n```\n\nVerify that the binary is in your `$PATH` by running `which onsave`.\n\n```bash\nwhich onsave\n```\n\nIf it's not, you can add it to your `$PATH` by running `export PATH=\"$PATH:$(go env GOPATH)/bin\"` or by \nadding this to your shell config file (`.zshrc`, `.bashrc`, etc.):\n\n```bash\nexport PATH=\"$PATH:$(go env GOPATH)/bin\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewalth%2Fonsave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewalth%2Fonsave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewalth%2Fonsave/lists"}