2.0.2 • Published 3 years ago
sass-list v2.0.2
sass-list
This Sass module provides more advanced list functions.
Install
Requires
- Dart Sass:
>=1.33.0
Install the package:
npm install sass-list
Use the package like any other Sass module:
@use 'sass-list';
Depending on your setup, you may need to configure node_modules
as include path:
const sass = require('sass');
sass.render({
file: scss_filename,
includePaths: ['node_modules']
});
Public API
Functions
Don't see the function you're looking for? Request a new feature describing a use case.
Comparison Methods
More information on comparison logic and reference functions.
Combined API
In order to avoid constantly declaring both the native 'sass:list' module and this library, the combined API has been added which merges the two.
// Rather than using both modules separately...
@use 'sass-list';
@use 'sass:list';
// ...this statement will accomplish the same thing.
@use 'sass-list/list';
Note: Since their functionality is enhanced by this library, the combined API hides the native list.index()
, list.join()
and list.set-nth()
functions.