{"id":3583235,"name":"github.com/posener/script","ecosystem":"go","description":"Package script provides helper functions to write scripts.\n\nInspired by https://github.com/bitfield/script, with some improvements:\n\n* Output between streamed commands is a stream and not loaded to memory.\n\n* Better representation and handling of errors.\n\n* Proper incocation, usage and handling of stderr of custom commands.\n\nThe script chain is represented by a\n(`Stream`) https://godoc.org/github.com/posener/script#Stream object. While each command in the\nstream is abstracted by the (`Command`) https://godoc.org/github.com/posener/script#Command\nstruct. This library provides basic functionality, but can be extended freely.\n\nA simple \"hello world\" example that creats a stream and pipe it to the stdout.\n\nAn example that shows how to iterate scanned lines.\n\nAn example that shows how to create custom commands using the `Through` method with a `PipeFn`\nfunction.","homepage":"https://github.com/posener/script","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/posener/script","keywords_array":[],"namespace":"github.com/posener","versions_count":12,"first_release_published_at":"2019-10-27T22:49:48.000Z","latest_release_published_at":"2023-07-11T01:36:02.000Z","latest_release_number":"v1.2.0","last_synced_at":"2026-04-01T22:19:20.475Z","created_at":"2022-04-11T04:23:13.055Z","updated_at":"2026-04-01T22:19:20.475Z","registry_url":"https://pkg.go.dev/github.com/posener/script","install_command":"go get github.com/posener/script","documentation_url":"https://pkg.go.dev/github.com/posener/script#section-documentation","metadata":{},"repo_metadata":{"uuid":"217173532","full_name":"posener/script","owner":"posener","description":"Easily write scripts with Go. Improvements for https://github.com/bitfield/script.","archived":false,"fork":false,"pushed_at":"2022-05-10T12:35:41.000Z","size":51,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-02-26T01:11:41.750Z","etag":null,"topics":["go","golang","script","util"],"latest_commit_sha":null,"homepage":"","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,"logo_url":null,"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}},"created_at":"2019-10-23T23:49:28.000Z","updated_at":"2022-11-27T09:40:14.000Z","dependencies_parsed_at":"2022-08-08T08:15:40.625Z","dependency_job_id":null,"html_url":"https://github.com/posener/script","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fscript","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fscript/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fscript/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posener","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2023-03-21T18:48:14.240Z","dependent_packages_count":44,"downloads":null,"downloads_period":null,"dependent_repos_count":123,"rankings":{"downloads":null,"dependent_repos_count":0.5537996724873933,"dependent_packages_count":0.6491436071582245,"stargazers_count":11.180727317378702,"forks_count":8.883289324471713,"docker_downloads_count":0.2605432300550288,"average":4.305500630310212},"purl":"pkg:golang/github.com/posener/script","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/posener/script","docker_dependents_count":573,"docker_downloads_count":95388094,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/posener/script","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/posener/script/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-12T02:43:15.548Z","issues_count":1,"pull_requests_count":15,"avg_time_to_close_issue":279229.0,"avg_time_to_close_pull_request":135073.66666666666,"issues_closed_count":1,"pull_requests_closed_count":15,"pull_request_authors_count":4,"issue_authors_count":1,"avg_comments_per_issue":1.0,"avg_comments_per_pull_request":0.7333333333333333,"merged_pull_requests_count":12,"bot_issues_count":0,"bot_pull_requests_count":12,"past_year_issues_count":1,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":279229.0,"past_year_avg_time_to_close_pull_request":102238.0,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":1.0,"past_year_avg_comments_per_pull_request":6.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":1},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fposener%2Fscript/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fposener%2Fscript/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fposener%2Fscript/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fposener%2Fscript/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fposener%2Fscript/codemeta","maintainers":[]}