meta.module-functions($module) returns a map of every function defined in $module—keys are function names, values are function values. Dart Sass only. Load with @use "sass:meta".
Official sample idea.
After @use "functions", meta.call(map.get(meta.module-functions("functions"), "pow"), 3, 4) → 81.
$module matches a namespace.
Pass a string matching a @use namespace in the current file (e.g. "functions", "math"), or a module value.
Returns a map of every function in a loaded module.
Call with map.get + meta.call (official pattern).
$module matches @use namespace in the current file.
Dart Sass only — great for registries and dynamic helpers.
One line: to list every function in a @use module, use meta.module-functions($module).
Practice
Compile Notes
Practical checklist:
checklist.txt
1. @use "sass:meta" (+ "sass:map")
2. @use "your-module"
3. $fns: meta.module-functions("your-module")
4. map.get / map.has-key / map.keys
5. meta.call($fn, $args...) to run a value
Frequently Asked Questions
meta.module-functions($module) returns a map of every function defined in that @use module—keys are function names, values are function values you can run with meta.call.
A string matching the namespace of a @use rule in the current file—for example "functions" after @use "functions", or "math" after @use "sass:math". It can also be a module value.
Official pattern: meta.call(map.get(meta.module-functions("functions"), "pow"), 3, 4). map.get picks the function value; meta.call runs it.
function-exists answers yes/no for one name. module-functions returns the whole catalog of functions in a module as a map.
get-function looks up one function by name. module-functions returns all functions in a module at once—handy for registries, loops, and map.has-key guards.
Dart Sass only (docs note since the module system / 1.23+ era). LibSass and Ruby Sass do not. Prefer current Dart Sass.