# dg-sprity-sass

> scss/sass style processor for sprity

Latest version **1.0.1** (published 2016-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install dg-sprity-sass
pnpm add dg-sprity-sass
yarn add dg-sprity-sass
bun add dg-sprity-sass
```

## 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 | 2016-05-17 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | camy.adrien@digipolitan.com |
| Maintainers | digipolitan |
| Keywords | sprites, sprite, scss, sass, sprity, css-sprite |

## Links

- npm: https://www.npmjs.com/package/dg-sprity-sass
- Repository: https://github.com/Digipolitan/dg-sprity-sass
- Issues: https://github.com/Digipolitan/dg-sprity-sass/issues
- npm.io page: https://npm.io/package/dg-sprity-sass

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^2.9.24
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.18.0

## Recent versions

- 1.0.1 (latest) — 2016-05-17
- 1.0.0 — 2016-05-17

## README

# dg-sprity-sass

> This is a fork of [sprity-sass](https://github.com/sprity/sprity-sass)

---

## Requirements

- [sprity](https://npmjs.org/package/sprity) version >= 1.0

## Install

Install with [npm](https://npmjs.org/package/dg-sprity-sass)

```
npm install sprity dg-sprity-sass --save
```

If you want to use `sprity-sass` with the command line interface of `sprity` install it globally.

```
npm install sprity dg-sprity-sass -g
```

## Options

* **style-type:** Eighter scss or sass. Defaults to scss.

## Usage

On commandline:

```sh
sprity out/ src/*.png -s style.scss -p sass --style-type scss
```

In JavaScript:

```js
var sprite = require('sprity');
sprite.create({
  ...
  style: 'style.scss',
  processor: 'sass'
  'style-type': 'scss'
  ...
}, function () {
  console.log('done');
});
```

#### [scss](http://sass-lang.com/) usage example

```scss
@import 'sprite'; // the generated style file (sprite.scss)

// camera icon (camera.png in src directory)
.icon-camera {
  @include sprite($camera);
}

// cart icon (cart.png in src directory)
.icon-cart {
  @include sprite($cart);
}
```

#### [sass](http://sass-lang.com/) usage example

```sass
@import 'sprite' // the generated style file (sprite.sass)

// camera icon (camera.png in src directory)
.icon-camera
  +sprite($camera)

// cart icon (cart.png in src directory)
.icon-cart
  +sprite($cart)
```

## More

See [sprity](https://npmjs.org/package/sprity) documentation

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