{"id":13581860,"url":"https://github.com/dnnrly/abbreviate","last_synced_at":"2026-01-24T16:20:11.820Z","repository":{"id":41271381,"uuid":"158885074","full_name":"dnnrly/abbreviate","owner":"dnnrly","description":"Supporting your devops by shortening your strings using common abbreviations and clever guesswork","archived":false,"fork":false,"pushed_at":"2024-07-11T14:12:55.000Z","size":14592,"stargazers_count":221,"open_issues_count":6,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T10:43:04.076Z","etag":null,"topics":["abbreviations","cobra","common-abbreviations","devops","devops-tools","go","golang","hacktoberfest","tidelift"],"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,"icon_url":"https://github.com/dnnrly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"user?u=24422800","tidelift":"go/github.com/dnnrly/abbreviate"}},"created_at":"2018-11-23T23:05:15.000Z","updated_at":"2025-01-15T19:45:10.000Z","dependencies_parsed_at":"2024-01-08T16:09:20.883Z","dependency_job_id":"1fbbf798-4fdb-452d-8081-0912ff7aaeed","html_url":"https://github.com/dnnrly/abbreviate","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/dnnrly/abbreviate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnrly%2Fabbreviate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnrly%2Fabbreviate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnrly%2Fabbreviate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnrly%2Fabbreviate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnnrly","download_url":"https://codeload.github.com/dnnrly/abbreviate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnrly%2Fabbreviate/sbom","scorecard":{"id":348718,"data":{"date":"2025-08-11","repo":{"name":"github.com/dnnrly/abbreviate","commit":"c8aeae401928371020a2a695aa1ca2ca50d739b4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":3,"reason":"Found 3/9 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/codesee-arch-diagram.yml:12","Warn: no topLevel permission defined: .github/workflows/gh-pages.yml:1","Warn: no topLevel permission defined: .github/workflows/pr.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/codeql.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codesee-arch-diagram.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/codesee-arch-diagram.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/gh-pages.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/gh-pages.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/gh-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/dnnrly/abbreviate/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: scripts/action/Dockerfile:1: pin your Docker image by updating golang:1.13 to golang:1.13@sha256:8ebb6d5a48deef738381b56b1d4cd33d99a5d608e0d03c5fe8dfa3f68d41a1f8","Warn: downloadThenRun not pinned by hash: scripts/action/Dockerfile:9","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.5.2 not signed: https://api.github.com/repos/dnnrly/abbreviate/releases/45664980","Warn: release artifact v1.5.1+tests not signed: https://api.github.com/repos/dnnrly/abbreviate/releases/45307549","Warn: release artifact v1.5.1 not signed: https://api.github.com/repos/dnnrly/abbreviate/releases/33075224","Warn: release artifact v1.5.2 does not have provenance: https://api.github.com/repos/dnnrly/abbreviate/releases/45664980","Warn: release artifact v1.5.1+tests does not have provenance: https://api.github.com/repos/dnnrly/abbreviate/releases/45307549","Warn: release artifact v1.5.1 does not have provenance: https://api.github.com/repos/dnnrly/abbreviate/releases/33075224"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T07:47:25.308Z","repository_id":41271381,"created_at":"2025-08-18T07:47:25.308Z","updated_at":"2025-08-18T07:47:25.308Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28731224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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":["abbreviations","cobra","common-abbreviations","devops","devops-tools","go","golang","hacktoberfest","tidelift"],"created_at":"2024-08-01T15:02:16.983Z","updated_at":"2026-01-24T16:20:11.788Z","avatar_url":"https://github.com/dnnrly.png","language":"Go","funding_links":["https://patreon.com/user?u=24422800","https://tidelift.com/funding/github/go/github.com/dnnrly/abbreviate","https://ko-fi.com/W7W414S4U","https://tidelift.com/subscription/pkg/go-github-com-dnnrly-abbreviate?utm_source=go-github-com-dnnrly-abbreviate\u0026utm_medium=referral\u0026utm_campaign=enterprise","https://tidelift.com/subscription/pkg/go-github-com-dnnrly-abbreviate?utm_source=go-github-com-dnnrly-abbreviate\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo"],"categories":["软件包","Go","Software Packages","DevOps Tools","Go Tools"],"sub_categories":["DevOps 工具","DevOps Tools"],"readme":"# abbreviate\n\nShorten your strings using common abbreviations.\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W414S4U)\n\n[![codecov](https://codecov.io/gh/dnnrly/abbreviate/branch/master/graph/badge.svg)](https://codecov.io/gh/dnnrly/abbreviate)\n[![godoc](https://godoc.org/github.com/dnnrly/abbreviate?status.svg)](http://godoc.org/github.com/dnnrly/abbreviate)\n[![report card](https://goreportcard.com/badge/github.com/dnnrly/abbreviate)](https://goreportcard.com/report/github.com/dnnrly/abbreviate)\n\n![GitHub watchers](https://img.shields.io/github/watchers/dnnrly/abbreviate?style=social)\n![GitHub stars](https://img.shields.io/github/stars/dnnrly/abbreviate?style=social)\n[![Twitter URL](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2Fdnnrly%2Fabbreviate)](https://twitter.com/intent/tweet?url=https://github.com/dnnrly/abbreviate)\n\n\n\u003cbutton class=\"button-save large\"\u003e\u003ca href=\"https://tidelift.com/subscription/pkg/go-github-com-dnnrly-abbreviate?utm_source=go-github-com-dnnrly-abbreviate\u0026utm_medium=referral\u0026utm_campaign=enterprise\"\u003eSupported by Tidelift\u003c/a\u003e\u003c/button\u003e\n\n## Motivation\n\nThis tool comes out of a frustration of the name of resources (in my specific\ncase, AWS stack names) being too long. Wouldn't it be nice if we could have a\ntool that would be able to suggest shorter alternatives if your original name\nis too long.\n\nBefore we get any further, I'm really interested in how you feel about this\ntool. Please take the time to fill in this short survey:\nhttps://forms.gle/6xV1gB8yKGdmuHJ78\n\n\n## Installation\n\n```bash\ngo get github.com/dnnrly/abbreviate\nmake build\n```\n\n## Usage\n\n```\nThis tool will attempt to shorten the string provided using common abbreviations\nspecified by language and 'set'. Word boundaries will be detected using title case\nand non-letters.\n\nHosted on Github - https://github.com/dnnrly/abbreviate\n\nI'm really interested in how you feel about this tool. Please take the time to fill\nin this short survey:\nhttps://forms.gle/6xV1gB8yKGdmuHJ78\n\nIf you spot a bug, feel free to raise an issue or fix it and make a pull\nrequest. We're really interested to see more abbreviations added or corrected.\n\nUsage:\n  abbreviate [action] [flags]\n  abbreviate [command]\n\nAvailable Commands:\n  camel       Abbreviate a string and convert it to camel case\n  help        Help about any command\n  kebab       Abbreviate a string and convert it to kebab case\n  original    Abbreviate the string using the original word boundary separators\n  pascal      Abbreviate a string and convert it to pascal case\n  print       Print abbreviations in this set\n  separated   Abbreviate a string and convert it using separator passed\n  snake       Abbreviate a string and convert it to snake case\n\nFlags:\n  -c, --custom string     Custom abbreviation set\n      --from-front        Shorten from the front\n  -h, --help              help for abbreviate\n  -l, --language string   Language to select (default \"en-us\")\n      --list              List all abbreviate sets by language\n  -m, --max int           Maximum length of string, keep on abbreviating while the string is longer than this limit\n  -n, --newline           Add newline to the end of the string (default true)\n  -s, --set string        Abbreviation set (default \"common\")\n      --no-stopwords      Remove stopwords from abbreviation\n      --strategy string   Abbreviation strategy (default \"lookup\")\n\nUse \"abbreviate [command] --help\" for more information about a command.\n```\n\nExamples:\n```\n$ abbreviate original strategy-limited\nstg-ltd\n\n$ abbreviate original prestrategy-limitedment\nprstg-ltdmnt\n\n$ abbreviate original --max 11 strategy-limited\nstrategy-ltd\n\n$ abbreviate original --max 11 --from-front strategy-limited\nstg-limited\n\n$ abbreviate camel --max 99 strategy-limited\nstrategyLimited\n\n$ abbreviate kebab StrategyLimited\nstg-ltd\n\n$ abbreviate separated StrategyLimited --separator +\nstg+ltd\n\n$ abbreviate separated StrategyLimited\nstgltd\n```\n\n## Code of Conduct\nThis project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.\n\n## Contributing\nPull requests are welcome. See the [contributing guide](CONTRIBUTING.md) for more details.\n\nPlease make sure to update tests as appropriate.\n\n## github.com/dnnrly/abbreviate for enterprise\n\nAvailable as part of the Tidelift Subscription\n\nThe maintainers of github.com/dnnrly/abbreviate and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/go-github-com-dnnrly-abbreviate?utm_source=go-github-com-dnnrly-abbreviate\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo)\n\n## License\n[Apache 2](https://choosealicense.com/licenses/apache-2.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnnrly%2Fabbreviate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnnrly%2Fabbreviate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnnrly%2Fabbreviate/lists"}