sass-runner

0.1.1 • Public • Published

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: <String> of sass

paths

an Type: <Array> of paths that are mapped to includePaths

Example

const data = `
  $blue: 'blue';
 
  .test-1 {
    color: $blue;
  }
`;
 
run(data, ['./src/scss'])
.then(x => console.log(x));

Readme

Keywords

Package Sidebar

Install

npm i sass-runner

Weekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • jon-sbx
  • catheraaine
  • kaseybon
  • flotsam