{"id":13413995,"url":"https://github.com/codemodus/kace","last_synced_at":"2026-01-12T13:55:35.987Z","repository":{"id":33249739,"uuid":"36894128","full_name":"codemodus/kace","owner":"codemodus","description":"Common case conversions covering common initialisms.","archived":false,"fork":false,"pushed_at":"2018-08-26T21:35:11.000Z","size":29,"stargazers_count":19,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T20:53:14.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codemodus.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}},"created_at":"2015-06-04T20:36:49.000Z","updated_at":"2024-06-13T21:20:13.000Z","dependencies_parsed_at":"2022-08-17T23:20:22.505Z","dependency_job_id":null,"html_url":"https://github.com/codemodus/kace","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/codemodus/kace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodus%2Fkace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodus%2Fkace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodus%2Fkace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodus%2Fkace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemodus","download_url":"https://codeload.github.com/codemodus/kace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodus%2Fkace/sbom","scorecard":{"id":296891,"data":{"date":"2025-08-11","repo":{"name":"github.com/codemodus/kace","commit":"e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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-17T19:46:37.083Z","repository_id":33249739,"created_at":"2025-08-17T19:46:37.083Z","updated_at":"2025-08-17T19:46:37.083Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-07-30T20:01:54.733Z","updated_at":"2026-01-12T13:55:35.965Z","avatar_url":"https://github.com/codemodus.png","language":"Go","readme":"# kace\n\n    go get \"github.com/codemodus/kace\"\n\nPackage kace provides common case conversion functions which take into \nconsideration common initialisms.\n\n## Usage\n\n```go\nfunc Camel(s string) string\nfunc Kebab(s string) string\nfunc KebabUpper(s string) string\nfunc Pascal(s string) string\nfunc Snake(s string) string\nfunc SnakeUpper(s string) string\ntype Kace\n    func New(initialisms map[string]bool) (*Kace, error)\n    func (k *Kace) Camel(s string) string\n    func (k *Kace) Kebab(s string) string\n    func (k *Kace) KebabUpper(s string) string\n    func (k *Kace) Pascal(s string) string\n    func (k *Kace) Snake(s string) string\n    func (k *Kace) SnakeUpper(s string) string\n```\n\n### Setup\n\n```go\nimport (\n    \"fmt\"\n\n    \"github.com/codemodus/kace\"\n)\n\nfunc main() {\n    s := \"this is a test sql.\"\n\n    fmt.Println(kace.Camel(s))\n    fmt.Println(kace.Pascal(s))\n\n    fmt.Println(kace.Snake(s))\n    fmt.Println(kace.SnakeUpper(s))\n\n    fmt.Println(kace.Kebab(s))\n    fmt.Println(kace.KebabUpper(s))\n\n    customInitialisms := map[string]bool{\n        \"THIS\": true,\n    }\n    k, err := kace.New(customInitialisms)\n    if err != nil {\n        // handle error\n    }\n\n    fmt.Println(k.Camel(s))\n    fmt.Println(k.Pascal(s))\n\n    fmt.Println(k.Snake(s))\n    fmt.Println(k.SnakeUpper(s))\n\n    fmt.Println(k.Kebab(s))\n    fmt.Println(k.KebabUpper(s))\n\n    // Output:\n    // thisIsATestSQL\n    // ThisIsATestSQL\n    // this_is_a_test_sql\n    // THIS_IS_A_TEST_SQL\n    // this-is-a-test-sql\n    // THIS-IS-A-TEST-SQL\n    // thisIsATestSql\n    // THISIsATestSql\n    // this_is_a_test_sql\n    // THIS_IS_A_TEST_SQL\n    // this-is-a-test-sql\n    // THIS-IS-A-TEST-SQL\n}\n```\n\n## More Info\n\n### TODO\n\n#### Test Trie\n\n Test the current trie.\n\n## Documentation\n\nView the [GoDoc](http://godoc.org/github.com/codemodus/kace)\n\n## Benchmarks\n\n    benchmark                 iter       time/iter   bytes alloc        allocs\n    ---------                 ----       ---------   -----------        ------\n    BenchmarkCamel4        2000000    947.00 ns/op      112 B/op   3 allocs/op\n    BenchmarkSnake4        2000000    696.00 ns/op      128 B/op   2 allocs/op\n    BenchmarkSnakeUpper4   2000000    679.00 ns/op      128 B/op   2 allocs/op\n    BenchmarkKebab4        2000000    691.00 ns/op      128 B/op   2 allocs/op\n    BenchmarkKebabUpper4   2000000    677.00 ns/op      128 B/op   2 allocs/op\n","funding_links":[],"categories":["Text Processing","文本处理","文本處理","\u003cspan id=\"文字处理-text-processing\"\u003e文字处理 Text Processing\u003c/span\u003e","文本处理`解析和操作文本的代码库`","Template Engines","Bot Building","Utility"],"sub_categories":["HTTP Clients","Utility/Miscellaneous","Advanced Console UIs","高級控制台界面","实用程序/Miscellaneous","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","查询语","交流","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemodus%2Fkace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemodus%2Fkace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemodus%2Fkace/lists"}