Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkbox/sass-runner
https://github.com/sparkbox/sass-runner
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sparkbox/sass-runner
- Owner: sparkbox
- Created: 2017-03-02T21:57:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-02T22:12:14.000Z (almost 8 years ago)
- Last Synced: 2024-12-17T02:03:11.571Z (19 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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));
```