{"id":22556253,"url":"https://github.com/substrate-system/kebab-case","last_synced_at":"2025-06-16T00:09:21.234Z","repository":{"id":264938208,"uuid":"894704908","full_name":"substrate-system/kebab-case","owner":"substrate-system","description":"Kebab case","archived":false,"fork":false,"pushed_at":"2025-05-09T00:58:44.000Z","size":30,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T05:17:57.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://substrate-system.github.io/kebab-case/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/substrate-system.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-26T20:49:20.000Z","updated_at":"2025-05-09T00:58:41.000Z","dependencies_parsed_at":"2025-04-09T19:08:58.843Z","dependency_job_id":"02716712-3f1a-4dd8-9dea-9d266950890e","html_url":"https://github.com/substrate-system/kebab-case","commit_stats":null,"previous_names":["substrate-system/kebab-case"],"tags_count":0,"template":false,"template_full_name":"nichoth/template-ts-browser","purl":"pkg:github/substrate-system/kebab-case","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fkebab-case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fkebab-case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fkebab-case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fkebab-case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/substrate-system","download_url":"https://codeload.github.com/substrate-system/kebab-case/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fkebab-case/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072806,"owners_count":22954926,"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":[],"created_at":"2024-12-07T19:11:44.390Z","updated_at":"2025-06-16T00:09:21.172Z","avatar_url":"https://github.com/substrate-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kebab case\n![tests](https://github.com/substrate-system/kebab-case/actions/workflows/nodejs.yml/badge.svg)\n[![types](https://img.shields.io/npm/types/@substrate-system/kebab-case?style=flat-square)](README.md)\n[![module](https://img.shields.io/badge/module-ESM%2FCJS-blue?style=flat-square)](README.md)\n[![semantic versioning](https://img.shields.io/badge/semver-2.0.0-blue?logo=semver\u0026style=flat-square)](https://semver.org/)\n[![Common Changelog](https://nichoth.github.io/badge/common-changelog.svg)](./CHANGELOG.md)\n[![install size](https://flat.badgen.net/packagephobia/install/@substrate-system/kebab-case)](https://packagephobia.com/result?p=@nichoth/session-cookie)\n[![dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg?style=flat-square)](package.json)\n[![license](https://img.shields.io/badge/license-Polyform_Non_commercial-26bc71)](LICENSE)\n\n\nKebab case a string.\n\n```js\nimport { kebabCase } from '@substrate-system/kebab-case'\n\nkebabCase('the quick brown fox');  // 'the-quick-brown-fox'\nkebabCase('the-quick-brown-fox');  // 'the-quick-brown-fox'\nkebabCase('the_quick_brown_fox');  // 'the-quick-brown-fox'\nkebabCase('theQuickBrownFox');  // 'the-quick-brown-fox'\nkebabCase('theQuickBrown Fox');  // 'the-quick-brown-fox'\nkebabCase('thequickbrownfox');  // 'thequickbrownfox'\nkebabCase('the - quick * brown# fox');  // 'the-quick-brown-fox'\nkebabCase('theQUICKBrownFox');  // 'the-quick-brown-fox'\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003ch2\u003eContents\u003c/h2\u003e\u003c/summary\u003e\n\n\u003c!-- toc --\u003e\n\n- [install](#install)\n- [API](#api)\n  * [ESM](#esm)\n  * [Common JS](#common-js)\n  * [pre-built JS](#pre-built-js)\n- [use](#use)\n  * [example](#example)\n\n\u003c!-- tocstop --\u003e\n\n\u003c/details\u003e\n\n## install\n\n```sh\nnpm i -S @substrate-system/kebab-case\n```\n\n## API\nThis exposes ESM and common JS via [package.json `exports` field](https://nodejs.org/api/packages.html#exports).\n\n### ESM\n```js\nimport { kebabCase } from '@substrate-system/kebab-case'\n```\n\n### Common JS\n```js\nconst { kebabCase } = require('@substrate-system/kebab-case')\n```\n\n### pre-built JS\nThis package exposes minified JS files too. Copy them to a location that is\naccessible to your web server, then link to them in HTML.\n\n#### copy\n```sh\ncp ./node_modules/@substrate-system/kebab-case/dist/module.min.js ./public\n```\n\n#### HTML\n```html\n\u003cscript type=\"module\" src=\"./module.min.js\"\u003e\u003c/script\u003e\n```\n\n## use\nTake a string in any format, return a URL-safe kebab case string.\n\n### example\n```js\nimport { kebabCase } from '@substrate-system/kebab-case'\n\nkebabCase('the quick brown fox');  // 'the-quick-brown-fox'\nkebabCase('the-quick-brown-fox');  // 'the-quick-brown-fox'\nkebabCase('the_quick_brown_fox');  // 'the-quick-brown-fox'\nkebabCase('theQuickBrownFox');  // 'the-quick-brown-fox'\nkebabCase('theQuickBrown Fox');  // 'the-quick-brown-fox'\nkebabCase('thequickbrownfox');  // 'thequickbrownfox'\nkebabCase('the - quick * brown# fox');  // 'the-quick-brown-fox'\nkebabCase('theQUICKBrownFox');  // 'the-quick-brown-fox'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Fkebab-case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubstrate-system%2Fkebab-case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Fkebab-case/lists"}