style-stream
Transform stream that reads HTML and writes all (inline and referenced) CSS used in it.
Last updated 5 years ago by anandthakker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install style-stream 
SYNC missed versions from official npm registry.

style-stream

Transform stream that reads HTML and writes all (inline and referenced) CSS used in it.

Usage

style-stream http://npmjs.org/package/example

or

curl http://github.com/iojs | style-stream http://github.com
var request = require('request'),
    styles = require('style-stream');
    
styles({url: 'http://npmjs.org/package/example'}))
  .pipe(process.stdout);
    
// or

request('http://npmjs.org/package/example')
.pipe(styles({baseurl: 'http://npmjs.org/package/example'}))
.pipe(process.stdout);

or

var fs = require('fs'),
    styles = require('style-stream');

fs.createReadStream(__dirname + '/index.html')
.pipe(styles({basepath: __dirname}))
.pipe(process.stdout);

Current Tags

  • 1.3.0                                ...           latest (5 years ago)

10 Versions

  • 1.3.0                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.5                                ...           5 years ago
  • 1.1.4                                ...           6 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.2                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |