node-readblock:逐块读取大文件(分隔)

时间:2021-06-07 19:07:49
【文件属性】:
文件名称:node-readblock:逐块读取大文件(分隔)
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-07 19:07:49
JavaScript 读块 nodejs 模块使用给定的分隔符逐块读取大文件,非常快 npm install readblock ##用法 var readblock = require('../index'); var file = readblock.open('test.fasta'); file.read("\n>", function(fasta) { console.dir(fasta); }); readblock 不像许多其他类似的模块那样流/流动。 它以异步方式一次读取一个块(尽管缓冲到大约 8k),因此您可以将其用作 async.while 的一部分。 理论上, readblock 应该能够读取一个非常大的文件。 readblock 旨在加载以“\n>”分隔的大型 fasta 输入文件,例如.. var async = require('async'); var readb
【文件预览】:
node-readblock-master
----.gitignore(13B)
----package.json(625B)
----index.js(2KB)
----README.md(2KB)
----test()
--------test.js(384B)
--------test.fasta(33KB)

网友评论