{"id":13413520,"url":"https://github.com/Wing924/shellwords","last_synced_at":"2025-03-14T19:32:27.380Z","repository":{"id":43177104,"uuid":"105127044","full_name":"Wing924/shellwords","owner":"Wing924","description":"A Golang library to manipulate strings according to the word parsing rules of the UNIX Bourne shell.","archived":false,"fork":false,"pushed_at":"2023-04-20T06:25:14.000Z","size":12,"stargazers_count":25,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T06:46:29.152Z","etag":null,"topics":["go","golang","golang-library"],"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/Wing924.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-09-28T09:08:28.000Z","updated_at":"2024-12-20T15:02:21.000Z","dependencies_parsed_at":"2024-01-07T21:54:08.291Z","dependency_job_id":"20c47960-e52a-4e00-a8a6-d6a6909a646c","html_url":"https://github.com/Wing924/shellwords","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wing924%2Fshellwords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wing924%2Fshellwords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wing924%2Fshellwords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wing924%2Fshellwords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wing924","download_url":"https://codeload.github.com/Wing924/shellwords/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635481,"owners_count":20322947,"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":["go","golang","golang-library"],"created_at":"2024-07-30T20:01:42.257Z","updated_at":"2025-03-14T19:32:27.117Z","avatar_url":"https://github.com/Wing924.png","language":"Go","readme":"# shellwords\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Wing924/shellwords)](https://goreportcard.com/report/github.com/Wing924/shellwords)\n[![codecov](https://codecov.io/gh/Wing924/shellwords/branch/master/graph/badge.svg)](https://codecov.io/gh/Wing924/shellwords)\n[![GoDoc](https://godoc.org/github.com/Wing924/shellwords?status.svg)](https://godoc.org/github.com/Wing924/shellwords)\n\nA Golang library to manipulate strings according to the word parsing rules of the UNIX Bourne shell.\n\n\n## Installation\n\n```sh\ngo get github.com/Wing924/shellwords\n```\n\n## Usage\n\n```go\nimport \"github.com/Wing924/shellwords\"\n```\n\n```go\nargs, err := shellwords.Split(\"./foo --bar=baz\")\n// args should be [\"./foo\", \"--bar=baz\"]\n\nargs, err := shellwords.Split(\"./foo 'a b c'\")\n// args should be [\"./foo\", \"a b c\"]\n```\n\n```go\nline := shellwords.Join([]string{\"abc\", \"d e f\"})\n// line should be `abc d\\ e\\ f`\n```\n\n```go\nline := shellwords.Escape(\"./foo 'a b c'\")\n// line should be `./foo\\ \\'a\\ b\\ c\\'\\\"`\n```\n\n## Thanks\n\nThis is based on ruby module: [Shellwords](https://github.com/ruby/shellwords)\n","funding_links":[],"categories":["其他杂项","Miscellaneous","\u003cspan id=\"其他-miscellaneous\"\u003e其他 Miscellaneous\u003c/span\u003e","Microsoft Office","杂项","Uncategorized","其他"],"sub_categories":["暂未分类","Uncategorized","Strings","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","未分类的","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","Advanced Console UIs","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWing924%2Fshellwords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWing924%2Fshellwords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWing924%2Fshellwords/lists"}