{"id":13673236,"url":"https://github.com/zekth/deno_case_style","last_synced_at":"2025-10-28T01:13:31.438Z","repository":{"id":62420914,"uuid":"184290752","full_name":"zekth/deno_case_style","owner":"zekth","description":"A string validator and formater for case Style","archived":false,"fork":false,"pushed_at":"2019-05-13T19:49:12.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:11:35.764Z","etag":null,"topics":["camelcase","deno","kebabcase","pascalcase","snakecase","string-manipulation"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/zekth.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":"2019-04-30T15:51:54.000Z","updated_at":"2023-01-24T18:27:25.000Z","dependencies_parsed_at":"2022-11-01T17:31:05.438Z","dependency_job_id":null,"html_url":"https://github.com/zekth/deno_case_style","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekth%2Fdeno_case_style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekth%2Fdeno_case_style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekth%2Fdeno_case_style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekth%2Fdeno_case_style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekth","download_url":"https://codeload.github.com/zekth/deno_case_style/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732474,"owners_count":21152849,"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":["camelcase","deno","kebabcase","pascalcase","snakecase","string-manipulation"],"created_at":"2024-08-02T10:00:31.593Z","updated_at":"2025-10-28T01:13:26.419Z","avatar_url":"https://github.com/zekth.png","language":"TypeScript","funding_links":[],"categories":["基础设施","Uncategorized","Modules"],"sub_categories":["Deno 源","Uncategorized","Online Playgrounds","String utils","Assistants"],"readme":"# Deno Case Style [![Build Status](https://travis-ci.org/zekth/deno_case_style.svg?branch=master)](https://travis-ci.org/zekth/deno_case_style)\n\nA string validator and formater for case Style\n\n## Validate\n\nReturns a boolean if the string is validated by the style Case:\n```ts\nimport { validate } from \"./mod.ts\";\n\nvalidate(\"SALADE-TOMATE-OIGNONS\", caseStyle.screamingKebabCase); // true\nvalidate(\"DIZ_IZ_DA_GLOBAL_VAL\", caseStyle.screamingSnakeCase); // true\nvalidate(\"SmokingIsBad\", caseStyle.camelCase); // false\nvalidate(\"imNotPascal\", caseStyle.pascalCase); // false\n```\n\n## Format\n\nFormat the input string to the wanted style case\n```ts\nimport { format } from \"./mod.ts\";\n\nformat(\"FOO Bar\", caseStyle.kebabCase); // output: foo-bar\nformat(\"FOO Bar\", caseStyle.snakeCase); // output: foo_bar\nformat(\"FOO Bar\", caseStyle.camelCase); // output: fooBar\nformat(\"FOO Bar\", caseStyle.pascalCase); // output: FooBar\nformat(\"FOO Bar\", caseStyle.kebabCase); // output: foo-bar\nformat(\"FOO Bar\", caseStyle.screamingKebabCase); // output: FOO-BAR\nformat(\"FOO Bar\", caseStyle.screamingSnakeCase); // output: FOO_BAR\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekth%2Fdeno_case_style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekth%2Fdeno_case_style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekth%2Fdeno_case_style/lists"}