文件名称:md-tokenizer:流式降价标记器
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-09 02:58:38
JavaScript
md-tokenizer 流式降价标记器。 例子 README.md: # Hello World Some text var fs = require ( "fs" ) var mdtok = require ( "md-tokenizer" ) var t = mdtok ( function ( src , token ) { JSON . stringify ( [ token . type , src ] ) } ) fs . createReadStream ( "README.md" ) . pipe ( t ) 输出: [ "heading 1" , "# " ] [ "text" , "Hello" ] [ "whitespace" , " " ] [ "text" , "World" ] [ "new line" , "\n" ] [ "text" ,
【文件预览】:
md-tokenizer-master
----.travis.yml(48B)
----test()
--------list-item.js(1KB)
--------emphasis.js(1KB)
--------code.js(2KB)
--------util()
--------headings.js(2KB)
----LICENCE(1KB)
----README.md(730B)
----.gitignore(12B)
----index.js(1KB)
----bin()
--------md-tokenizer.js(167B)
----package.json(757B)