app/lib/tag-path.mjs
9 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| tagPath | 7 to 9 | 1 | 100% | OkCRAP 1 | No data: no mutants in this code |
Imports
It imports no other module of this repo. Imported by app/components/post-row.tsx, app/lib/feed-response.ts, app/lib/nav.ts, app/lib/site-urls.server.ts, app/routes/blog._index.tsx, app/routes/blog.tags.$tag.tsx.
Source
/**
* Encoded, not re-slugified: `tags.slug` is already the write path's normalization.
*
* @param {string} slug a `tags.slug` value
* @returns {string} a site-absolute path
*/
export function tagPath(slug) {
return `/writing/tags/${encodeURIComponent(slug)}`;
}