Gathering detailed insights and metrics for node-sass-glob-importer
Gathering detailed insights and metrics for node-sass-glob-importer
Gathering detailed insights and metrics for node-sass-glob-importer
Gathering detailed insights and metrics for node-sass-glob-importer
node-sass-magic-importer
Custom node-sass importer for selector specific imports, node importing, module importing, globbing support and importing files only once
node-sass-glob
A node-sass importer adding glob support
node-sass-glob-importer-deep
Custom node-sass package importer that allow you to use deep glob syntax in node-sass imports.
node-sass-glob-importer-plus
Like node-sass-glob-importer except also parses vaguer paths without the .scss or .sass extension (like vendors/**/*)
Custom node-sass importer for selector specific imports, module importing, globbing support and importing files only once.
npm install node-sass-glob-importer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (92.56%)
SCSS (5.81%)
JavaScript (0.85%)
Shell (0.42%)
CSS (0.36%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
293 Stars
915 Commits
26 Forks
4 Watchers
10 Branches
6 Contributors
Updated on Jul 10, 2025
Latest Version
5.3.3
Package Id
node-sass-glob-importer@5.3.3
Unpacked Size
6.48 kB
Size
2.53 kB
File Count
10
NPM Version
9.6.0
Node Version
18.14.2
Published on
Jul 02, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
Custom node-sass importer to which allows you to use glob syntax in imports
Globbing allows pattern matching operators to be used to match multiple files at once.
1// Import all files inside the `scss` directory and subdirectories. 2@import: 'scss/**/*.scss';
1const sass = require('node-sass'); 2const globImporter = require('node-sass-glob-importer'); 3 4sass.render({ 5 ... 6 importer: globImporter() 7 ... 8});
1// webpack.config.js 2const globImporter = require('node-sass-glob-importer'); 3const MiniCssExtractPlugin = require('mini-css-extract-plugin'); 4 5module.exports = { 6 module: { 7 rules: [ 8 { 9 test: /\.scss$/, 10 use: [ 11 { 12 loader: MiniCssExtractPlugin.loader, 13 }, 14 { 15 loader: 'css-loader' 16 }, { 17 loader: 'sass-loader', 18 options: { 19 sassOptions: { 20 importer: globImporter() 21 } 22 } 23 } 24 ] 25 } 26 ] 27 }, 28 plugins: [ 29 new MiniCssExtractPlugin({ 30 filename: 'style.css' 31 }) 32 ] 33}
1node-sass --importer node_modules/node-sass-glob-importer/dist/cli.js -o dist src/index.scss
It is not possible anymore to set the includePaths
option when initializing the importer. Use the node-sass includePaths option instead.
This module is maintained in one repository together with multiple other node-sass custom importers. The node-sass-magic-importer repository is using a monorepo approach with fixed versions for all packages. The projects maintained in the node-sass-magic-importer monorepo started out as separate repositories with separate versioning, so when they were integrated into the monorepo, the versions of all projects were raised to 5.0.0 and are in sync since then.
This module is powered by node-sass-magic-importer.
Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
Patreon: https://www.patreon.com/maoberlehner
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
50 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More