{"id":6532974,"name":"github.com/mdm-code/duct","ecosystem":"go","description":"Package duct provides the internals for the duct command-line program wrapping\ncode formatters that do not read from standard input data stream, and instead\nthey take file names as command arguments. The package offers components that\nallow such commands to be wrapped inside of a standard Unix stdin to stdout\nfilter-like data flow.\n\nThe general idea is that input data read from standard input is written to an\nintermediate temporary file. The name of the file gets passed to as one of the\npositional arguments of the named program to be executed. The modified contents\nof the file are then re-read and written out the standard output. This way the\nwrapped program can be used as a regular Unix filter.\n\nSome code formatters take file names but do not modify files directly. Instead\nthey write the formatted code to stdout or stderr. This scenario is supported\nby a the WrapWrite function that writes code from stdin to the temporary file\nbut relies on the command's own stdout and/or stderr to write out the output.","homepage":"https://github.com/mdm-code/duct","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/mdm-code/duct","keywords_array":[],"namespace":"github.com/mdm-code","versions_count":4,"first_release_published_at":"2023-03-14T20:24:46.000Z","latest_release_published_at":"2023-11-28T18:36:46.000Z","latest_release_number":"v1.3.0","last_synced_at":"2026-03-15T08:52:17.997Z","created_at":"2023-03-15T00:56:29.082Z","updated_at":"2026-03-15T08:52:17.997Z","registry_url":"https://pkg.go.dev/github.com/mdm-code/duct","install_command":"go get github.com/mdm-code/duct","documentation_url":"https://pkg.go.dev/github.com/mdm-code/duct#section-documentation","metadata":{},"repo_metadata":{"uuid":"611915672","full_name":"mdm-code/duct","owner":"mdm-code","description":"Wrap a code formatter inside of a stdin-to-stdout filter-like data flow.","archived":false,"fork":false,"pushed_at":"2023-11-28T18:38:16.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-28T19:38:19.414Z","etag":null,"topics":["black","cli","code-formatter","formatter","go","golang","pipe","stdin","stdout","terminal","unix"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mdm-code/duct","language":"Go","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/mdm-code.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}},"created_at":"2023-03-09T20:04:17.000Z","updated_at":"2023-09-26T12:03:39.000Z","dependencies_parsed_at":"2023-11-28T19:47:42.771Z","dependency_job_id":null,"html_url":"https://github.com/mdm-code/duct","commit_stats":null,"previous_names":[],"tags_count":4,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdm-code","download_url":"https://codeload.github.com/mdm-code/duct/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":178283920,"owners_count":10657732,"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"},"owner_record":{"login":"mdm-code","name":"Michał Adamczyk","uuid":"82025163","kind":"user","description":"Software Developer • Python  • Go • Shell","email":"","website":null,"location":"Łódź","twitter":null,"company":"Nokia","icon_url":"https://avatars.githubusercontent.com/u/82025163?u=98345da84a3c9aa0dc53a70f3946d54e3c617cfc\u0026v=4","repositories_count":5,"last_synced_at":"2023-03-06T07:10:27.223Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/mdm-code","created_at":"2022-11-16T06:49:12.242Z","updated_at":"2023-03-06T07:10:27.257Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdm-code","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdm-code/repositories"},"tags":[{"name":"v1.3.0","sha":"9a284bd9f187ddbf4f6fc5c3fed7685cf84f95ec","kind":"commit","published_at":"2023-11-28T18:36:46.000Z","download_url":"https://codeload.github.com/mdm-code/duct/tar.gz/v1.3.0","html_url":"https://github.com/mdm-code/duct/releases/tag/v1.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.3.0/manifests"},{"name":"v1.2.0","sha":"8a9b176acf8cce9660865a0896949ab3322d0c5f","kind":"tag","published_at":"2023-08-23T22:51:15.000Z","download_url":"https://codeload.github.com/mdm-code/duct/tar.gz/v1.2.0","html_url":"https://github.com/mdm-code/duct/releases/tag/v1.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.2.0/manifests"},{"name":"v1.1.0","sha":"d086a2829daa616057f9fa120a1c30debeb2819f","kind":"tag","published_at":"2023-03-15T19:38:41.000Z","download_url":"https://codeload.github.com/mdm-code/duct/tar.gz/v1.1.0","html_url":"https://github.com/mdm-code/duct/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.1.0/manifests"},{"name":"v1.0.0","sha":"7abf0526ab2a3f96bd5fecaaf10587bef20dbe9d","kind":"commit","published_at":"2023-03-14T20:24:46.000Z","download_url":"https://codeload.github.com/mdm-code/duct/tar.gz/v1.0.0","html_url":"https://github.com/mdm-code/duct/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2023-12-28T19:53:49.959Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/mdm-code/duct","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/mdm-code/duct","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/mdm-code/duct","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/mdm-code/duct/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-18T00:14:10.010Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdm-code%2Fduct/issues"},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmdm-code%2Fduct/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmdm-code%2Fduct/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmdm-code%2Fduct/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmdm-code%2Fduct/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmdm-code%2Fduct/codemeta","maintainers":[]}