【文件属性】:
文件名称:watchbuild:观看文件并使用流转换它们
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-23 06:27:18
JavaScript
手表建造
观看文件并使用流转换它们。
var wb = require ( 'watchbuild' ) ;
var marked = require ( 'marked' ) ;
var through = require ( 'through2' ) ;
// convert 'test.md' to html and write the result to 'test.html'
// whenever 'test.md' it changes
wb ( { './test.md' : './test.html' } , function ( ) { return marked ; } ) ;
// also supports streams
wb ( { './foo.md' : './foo.html' } , function ( ) {
return through
【文件预览】:
watchbuild-master
----.travis.yml(61B)
----index.js(851B)
----package.json(595B)
----readme.md(1KB)
----test()
--------test.md(7B)
--------test.js(684B)
----LICENSE(1KB)
----.gitignore(14B)