{"id":28831447,"url":"https://github.com/daun/modern-sass-glob-importer","last_synced_at":"2026-05-16T11:05:47.412Z","repository":{"id":299236630,"uuid":"1002459662","full_name":"daun/modern-sass-glob-importer","owner":"daun","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-15T14:35:35.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-15T14:37:47.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-15T14:23:27.000Z","updated_at":"2025-06-15T14:35:38.000Z","dependencies_parsed_at":"2025-06-15T14:37:49.045Z","dependency_job_id":"a021a517-36ce-4b61-8b4d-f004777c5da8","html_url":"https://github.com/daun/modern-sass-glob-importer","commit_stats":null,"previous_names":["daun/modern-sass-glob-importer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daun/modern-sass-glob-importer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodern-sass-glob-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodern-sass-glob-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodern-sass-glob-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodern-sass-glob-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/modern-sass-glob-importer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodern-sass-glob-importer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260703921,"owners_count":23049451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-19T06:39:45.747Z","updated_at":"2025-10-12T00:32:51.091Z","avatar_url":"https://github.com/daun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern Sass Glob Importer\n\n[![npm](https://img.shields.io/npm/v/modern-sass-glob-importer)](https://www.npmjs.com/package/modern-sass-glob-importer)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\u003c!-- [![CI Status](https://github.com/daun/modern-sass-glob-importer/actions/workflows/ci.yml/badge.svg)](https://github.com/daun/modern-sass-glob-importer/actions) --\u003e\n\nA custom importer for Sass that expands glob patterns.\n\n```scss\n@use \"components/**/*.scss\";\n@use \"elements/**/*.scss\";\n```\n\n## Description\n\nWhile there are a number of Sass glob importers available, none of them currently work with the [modern JS API](https://sass-lang.com/documentation/breaking-changes/legacy-js-api/) or support `@use` statements. This importer only works with the modern API and has no intention of working with the legacy API.\n\n## Features\n\n- Expands `*.glob` patterns to their matching files\n- Imports from both `@use` and `@import` statements\n- Supports nested imports\n- Works with vite, webpack, etc, or standalone\n\n## Installation\n\n```bash\nnpm install modern-sass-glob-importer\n```\n\n## Usage\n\n```js\nconst sass = require(\"sass\");\nconst globImporter = require(\"modern-sass-glob-importer\");\n\n// Standalone usage\nsass\n  .compile(\"path/to/style.scss\", {\n    importers: [globImporter()],\n  })\n  .then(function (result) { });\n```\n\n## Example\n\n```scss\n@use \"components/*.scss\";\n@use \"elements/*.scss\";\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fmodern-sass-glob-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Fmodern-sass-glob-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fmodern-sass-glob-importer/lists"}