{"library":"node-sass-package-importer","type":"library","category":null,"description":"node-sass-package-importer is a custom importer for node-sass designed to streamline the process of importing Sass files from `node_modules` directories within your Sass code. It simplifies path management by allowing module imports using a `~` prefix, such as `@import '~bootstrap';`, eliminating the need for complex relative paths. The package currently maintains a stable version of 5.3.3 and is part of a larger `node-sass-magic-importer` monorepo. It offers flexible configuration options, including customizable `packageKeys` to define which entries in a `package.json` file should be considered for import resolution (e.g., 'sass', 'scss', 'main'), and a configurable `packagePrefix`. Key differentiators include its robust path resolving logic for both root modules and specific files within modules, support for multi-level `node_modules` directories (since v5.2.0), and the ability to glob import empty directories (since v5.1.0). Recent updates address TypeScript resolution and shared context issues in Webpack. While `node-sass` itself is in maintenance, this package provides crucial functionality for projects still relying on it, offering a consistent and manageable way to handle third-party Sass dependencies.","language":"javascript","status":"active","version":"5.3.3","tags":["javascript","importer","module-importer","node-sass","package-importer","sass","typescript"],"install":[{"cmd":"npm install node-sass-package-importer","imports":["const packageImporter = require('node-sass-package-importer');","import packageImporter from 'node-sass-package-importer';","import type { ImporterOptions } from 'node-sass-package-importer';"]},{"cmd":"yarn add node-sass-package-importer","imports":[]},{"cmd":"pnpm add node-sass-package-importer","imports":[]}],"homepage":null,"github":"https://github.com/maoberlehner/node-sass-magic-importer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/node-sass-package-importer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/node-sass-package-importer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}