Skip to main content

API Overview

Functions

call-or-reference ( $function, $args... )

Allows a function to return its reference when no parameters are provided, otherwise maintaining its regular behavior.

get-keyword ( $args, $name [, $default] )

Gets the value of the named parameter from the given argument list, otherwise providing a default value.

strip-keywords ( $args )

Strips all named parameters from the given argument list.

Don’t see the function you’re looking for? Request a new feature describing a use case.

Combined API

In order to avoid constantly declaring both the native sass:meta module and this library, the combined API has been added which merges the two.

// Rather than using both modules separately...
@use '@sass-fairy/meta';
@use 'sass:meta';

// ...this statement will accomplish the same thing.
@use '@sass-fairy/meta/meta';