tokenize-html:流式 html 标记器

时间:2021-06-07 22:35:11
【文件属性】:
文件名称:tokenize-html:流式 html 标记器
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-07 22:35:11
JavaScript 标记化-html 流式 html 标记器。 像但在下面使用宽容的 。 例子 var fs = require ( 'fs' ) ; var tokenize = require ( 'tokenize-html' ) ; var through = require ( 'through2' ) ; fs . createReadStream ( __dirname + '/table.html' ) . pipe ( tokenize ( ) ) . pipe ( through . obj ( function ( row , enc , next ) { console . log ( row ) ; next ( ) ; } ) ) ; 这个html: < table xss=removed> < tbody> blah blah blah
【文件预览】:
tokenize-html-master
----index.js(509B)
----package.json(712B)
----test()
--------table.js(439B)
--------table.html(143B)
--------expected.json(576B)
----Readme.md(1KB)

网友评论