# sass-jspm-importer

> jspm importer module for node-sass

Latest version **0.0.6** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2015-10-16 |
| First published | 2015-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | IDCWARE |
| Maintainers | idcware |
| Keywords | sass, jspm |

## Links

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

## Recent versions

- 0.0.6 (latest) — 2015-10-16
- 0.0.5 — 2015-09-30
- 0.0.4 — 2015-09-30
- 0.0.3 — 2015-09-17
- 0.0.2 — 2015-08-28

## README

# sass-jspm-importer
This package provides a [sass importer](https://github.com/sass/node-sass#importer--v200---experimental) function that uses [jspm](https://github.com/jspm/jspm-cli/) to resolve paths.

[![npm](https://nodei.co/npm/sass-jspm-importer.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/sass-jspm-importer/)


[![Build Status](https://travis-ci.org/idcware/node-sass-jspm-importer.svg?branch=master&style=flat)](https://travis-ci.org/idcware/node-sass-jspm-importer)
[![npm version](https://badge.fury.io/js/sass-jspm-importer.svg)](http://badge.fury.io/js/sass-jspm-importer)
[![Dependency Status](https://david-dm.org/idcware/node-sass-jspm-importer.svg?theme=shields.io)](https://david-dm.org/idcware/node-sass-jspm-importer)
[![devDependency Status](https://david-dm.org/idcware/node-sass-jspm-importer/dev-status.svg?theme=shields.io)](https://david-dm.org/idcware/node-sass-jspm-importer#info=devDependencies)

## Usage

### Gulp Task
```javascript
var sassJspm = require('sass-jspm-importer');

gulp.task('build-sass', function() {
    return gulp.src('src/sass/*.scss')
        .pipe(sass({
            errLogToConsole: true,
            functions: sassJspm.resolve_function('/lib/'),
            importer: sassJspm.importer
        }))
        .pipe(gulp.dest('dist/css'));
});
```

Where `/lib/` is the path to your `jspm_packages` folder in your document root.

### In Sass
```sass
$fa-font-path: jspm_resolve("font-awesome/fonts/");
@import "jspm:font-awesome/scss/font-awesome";

// do fun stuff with font-awesome !
```
The `jspm:`-prefixed imports will be handled by the custom importer.

*Please note that the `jspm:` prefix is just there to indicate that you want this import resolved through jspm, it's not refering to the jspm registry.*

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