Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sparkbox/sass-runner


https://github.com/sparkbox/sass-runner

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# sass-runner

A small wrapper around `node-sass`.

## Usage

`sass-runner` takes two arguments, `sass-runner(data, paths)` and returns a `Promise`.

### data
a `Type: ` of sass

### paths
an `Type: ` of paths that are mapped to [`includePaths`](https://github.com/sass/node-sass#includepaths)

## Example

```javascript
const data = `
$blue: 'blue';

.test-1 {
color: $blue;
}
`;

run(data, ['./src/scss'])
.then(x => console.log(x));
```