MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / slug

Function slug

atomic-canonical/src/lift.rs:247–249  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

245}
246
247fn slug(s: &str) -> String {
248 s.to_lowercase()
249}
250
251fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> {
252 opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'")))

Callers 1

lift_intentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected