Sha256: 76e1e24ffbbfb83fdc1b711afbceeb0fb21441a2d09a86ea1eb5fee7dbcf943a

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 Bytes

Contents

/**
 * Module dependencies.
 */

var stylus = require('../')
  , fs = require('fs')
  , path = 'testing/small.styl'
  , str = fs.readFileSync(path, 'utf8');

// setTimeout(function(){
//   console.log('starting');
//   id = setInterval(function(){
//     stylus(str)
//       .set('filename', path)
//       .render(function(err, css){
//         if (err) throw err;
//         //console.log(css);
//       });
//   }, 0);
// }, 5000);
// 
// setTimeout(function(){
//   clearInterval(id)
//   console.log('stopping');
// }, 40000);

var start = new Date;

stylus(str)
  .set('filename', path)
  .render(function(err, css){
    if (err) throw err;
    console.log(css);
    // console.log('%dms', new Date - start);
  });

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stylus-source-0.28.2 vendor/testing/index.js
stylus-source-0.28.1 vendor/testing/index.js
stylus-source-0.28.0 vendor/testing/index.js
stylus-source-0.27.2 vendor/testing/index.js
stylus-source-0.27.1 vendor/testing/index.js