app/lib/phage-table.mjs
14 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 |
|---|---|---|---|---|---|
| phagesDbUrl | 13 to 15 | 1 | 100% | OkCRAP 1 | No data: no mutants in this code |
Imports
It imports no other module of this repo. Imported by app/lib/pages/invariants.mjs, app/lib/phages/compile.mjs, app/routes/phages.tsx.
Source
/**
* The address of a PhagesDB record. The phage table on /research/phages is drawn from the phage rows (content/phages,
* docs/PHAGES.md): into the page's markdown, which the twin, the search records and the page's invariants read, and
* into Capsomer's catalog for the HTML (app/lib/phages/catalog.mjs). The phage rows are judged by
* app/lib/phages/compile.mjs.
*/
/**
* The human page for a PhagesDB record name.
*
* @param {string} record
*/
export function phagesDbUrl(record) {
return `https://phagesdb.org/phages/${record}/`;
}