@sass-fairy/string
Provides extended functionality for processing strings in Sass, with interfaces similar to ECMA specifications.
Install
Requires
- Dart Sass:
^1.52.0
Install the package:
npm install @sass-fairy/string@next
Use the package like any other Sass module:
@use '@sass-fairy/string';
Configure Sass options to use the functions provided by this package:
const sass = require('sass');
const StringFunctions = require('@sass-fairy/string');
sass.render({
file: scss_filename,
includePaths: ['node_modules'],
functions: {
...StringFunctions
}
});
Documentation
See sass-fairy.com/next/api/string for more information about this package.