Sha256: 0488330915b0b74ef27c59d2815c8225d271a53de23b73fe4a3d9e38f3f22638
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 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) .set('include css', true) .render(function(err, css){ if (err) throw err; console.log(css); // console.log('%dms', new Date - start); });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stylus-source-0.30.1 | vendor/testing/index.js |
stylus-source-0.30.0 | vendor/testing/index.js |
stylus-source-0.29.0 | vendor/testing/index.js |