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

Function slugify

scripts/next-action.js:112–119  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

110}
111
112function slugify(value) {
113 const slug = String(value || '')
114 .toLowerCase()
115 .replace(/[^a-z0-9]+/g, '-')
116 .replace(/^-+|-+$/g, '')
117 .slice(0, 80);
118 return slug || 'approval';
119}
120
121function compactTimestamp(value) {
122 const date = new Date(value || Date.now());

Callers 1

writeApprovalCapsuleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected