compilestream
make frontend compiler be streaming
Last updated 5 years ago by jridea .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install compilestream 
SYNC missed versions from official npm registry.

compilestream

Build Status

提供一个将常用的预编译语言转换为流的功能,可以像写gulp脚本一样以流的方式写些预编译语言的编译过程。

例如需要编译一个coffee文件,只需

coffeeOpts = { bare: true } # 每个编译器自己的配置
compilestream = require('compilestream')
fs.createReadStream('a.coffee')
.pipe(compilestream.coffee(coffeeOpts))
.pipe(fs.createWriteStream('a.js'))

支持的预编译语言

compilestream 默认提供常用的编译语言的流

Current Tags

  • 0.0.4                                ...           latest (5 years ago)

4 Versions

  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |