MCPcopy Create free account
hub / github.com/SethGammon/Citadel / slugify

Function slugify

scripts/watch.js:363–371  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

361// -- Intake item generation ---------------------------------------------------
362
363function slugify(str) {
364 return str
365 .replace(/[/\\]/g, '-')
366 .replace(/\.[^.]+$/, '')
367 .replace(/[^a-zA-Z0-9-]/g, '-')
368 .replace(/-+/g, '-')
369 .replace(/^-|-$/g, '')
370 .toLowerCase();
371}
372
373/** Collect marker_hash values from existing intake item frontmatter. */
374function readExistingIntakeHashes() {

Callers 2

generateIntakeItemFunction · 0.70
test-deliver.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected