{"id":15412905,"url":"https://github.com/ascorbic/slash-edge","last_synced_at":"2025-10-04T11:17:30.940Z","repository":{"id":62422792,"uuid":"504457876","full_name":"ascorbic/slash-edge","owner":"ascorbic","description":"Banish or add trailing slashes with a Netlify edge function","archived":false,"fork":false,"pushed_at":"2023-11-08T11:41:06.000Z","size":36,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T14:21:38.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://trailing-slash-edge.netlify.app/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ascorbic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-06-17T08:42:18.000Z","updated_at":"2024-11-08T19:15:31.000Z","dependencies_parsed_at":"2024-10-21T13:54:47.727Z","dependency_job_id":null,"html_url":"https://github.com/ascorbic/slash-edge","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.1875,"last_synced_commit":"ecb71741214258a5bd0c2c8cf2a1459feff17cd7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ascorbic/slash-edge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fslash-edge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fslash-edge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fslash-edge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fslash-edge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ascorbic","download_url":"https://codeload.github.com/ascorbic/slash-edge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fslash-edge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302609,"owners_count":25964535,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-01T16:54:49.052Z","updated_at":"2025-10-04T11:17:30.904Z","avatar_url":"https://github.com/ascorbic.png","language":"HTML","readme":"# Strip or add trailing slash\n\nBanish or enforce trailing slashes with Netlify edge functions. [Demo](https://trailing-slash-edge.netlify.app/)\n\n## Usage\n\nYou can either manually copy the function, or import it from a URL.\n\n### Manual\n\nCopy the appropriate function from [`/lib/`](https://github.com/ascorbic/slash-edge/tree/main/lib) to your site's `/netlify/edge-functions/` directory.\n\n### Import from URL\n\nCreate a handler your site's `/netlify/edge-functions/` directory and export the function from deno.land/x:\n\n```typescript\n// /netlify/edge-functions/strip-slash.ts\n\nexport { stripSlash as default } from 'https://deno.land/x/slash_handler/mod.ts'\n```\n\nAfter creating the function, you then need to add a declaration to your site's `netlify.toml`:\n\n```toml\n[[edge_functions]]\nfunction = \"strip-slash\" # or \"add-slash\"\npath = \"/*\"\n```\n\nLicence: MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fslash-edge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fascorbic%2Fslash-edge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fslash-edge/lists"}