0.0.3 • Published 6 years ago

sarsaparilla v0.0.3

Weekly downloads
4
License
AGPL-3.0
Repository
github
Last release
6 years ago

Sarsaparilla CircleCI

Parallelized node-sass.

D'ya have a good sarsaparilla?

Installation

npm i sarsaparilla

Usage

import {Sarsaparilla} from 'sarsaparilla';

const sarsaparilla = new Sarsaparilla({
  parallel: true // Boolean or number. If true, then os.cpus().length - 1 worker processes will be used.
});

sarsaparilla
  .runTasks([
    // See options at https://github.com/sass/node-sass#usage
    {
      file: 'path/to/file.scss'
    }
  ])
  .then(function(results) {
    // Do something with the results of the tasks.
    results.forEach(function(result) {
      if (result.error) {
        console.error(result.error);
      } else {
        console.log(result.data);
      }
    });
  });

License

Copyright (c) 2018 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.