# sass-glob-importer

> Import Sass files from NPM and Bower Modules

Latest version **1.0.1** (published 2015-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install sass-glob-importer
pnpm add sass-glob-importer
yarn add sass-glob-importer
bun add sass-glob-importer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-07-23 |
| First published | 2015-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Lucas Motta |
| Maintainers | lucasmotta |
| Keywords | sass, scss, importer, glob, wildcard, node-sass |

## Links

- npm: https://www.npmjs.com/package/sass-glob-importer
- Repository: https://github.com/lucasmotta/sass-glob-importer
- Homepage: https://github.com/lucasmotta/sass-glob-importer#readme
- Issues: https://github.com/lucasmotta/sass-glob-importer/issues
- npm.io page: https://npm.io/package/sass-glob-importer

## Dependencies (4)

- [es6-map](https://npm.io/package/es6-map.md) ^0.1.1
- [is-glob](https://npm.io/package/is-glob.md) ^2.0.0
- [map-files](https://npm.io/package/map-files.md) ^0.7.4
- [sort-object](https://npm.io/package/sort-object.md) ^2.0.2

## Recent versions

- 1.0.1 (latest) — 2015-07-23
- 1.0.0 — 2015-07-06

## README

# sass-glob-importer

Simple importer for [node-sass](https://github.com/sass/node-sass) to allow importing Sass files using glob patterns

```sass
@import "settings/*.scss";
@import "components/*.scss";
```

The files will always be sorted alphabetically when imported.


## How-to

### install

```sh
npm install sass-glob-importer --save-dev
```

### use the importer with [node-sass](https://github.com/sass/node-sass) `>= v3.0.0`

```js
var sass = require('node-sass');
var globImporter = require('sass-glob-importer');

sass.render({
  file: './source/css/app.scss',
  importer: globImporter()
}, cb);
```

### use the importer with [gulp-sass](https://github.com/dlmanning/gulp-sass)

```js
var gulp = require('gulp');
var sass = require('gulp-sass');
var globImporter = require('sass-glob-importer');

gulp.task('style', function() {
  return gulp.src('./source/css/app.scss')
    .pipe(sass({ importer: globImporter() }))
    .pipe(gulp.dest('./public/css'));
});
```

## Tests
Use `npm test` to run the tests.

## Issues
If you discover a bug, please raise an issue on Github. https://github.com/lucasmotta/sass-glob-importer/issues

## Contributors
The source code and the test are written in ES6 (ECMAScript 2015).  
[Babel](https://babeljs.io) is being used to compile to ES5 before the package is published to npm.

---
_Source: https://npm.io/package/sass-glob-importer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
