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

Function slugify

core/loops/contract.js:19–25  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17]);
18
19function slugify(value) {
20 return String(value || 'loop')
21 .toLowerCase()
22 .replace(/[^a-z0-9]+/g, '-')
23 .replace(/^-|-$/g, '')
24 .slice(0, 80) || 'loop';
25}
26
27function nowIso(options = {}) {
28 return options.now || new Date().toISOString();

Callers 1

loopIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected