read-chunk:从文件中读取大块

时间:2021-05-26 07:52:09
【文件属性】:
文件名称:read-chunk:从文件中读取大块
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 07:52:09
JavaScript 读块 从文件中读取大块 因为内置方式需要太多样板。 安装 $ npm install read-chunk 用法 const readChunk = require ( 'read-chunk' ) ; // foo.txt => hello readChunk . sync ( 'foo.txt' , 1 , 3 ) ; //=> 'ell' 原料药 readChunk(filePath,startPosition,长度) 返回带有读取块的Promise 。 readChunk.sync(filePath,startPosition,长度) 返回带有已读取块的Buffer 。 文件路径 类型: string startPosition 类型: number 开始阅读的位置。 长度 类型: number 读取的字节数。 执照 麻省理工学院:copyright:
【文件预览】:
read-chunk-main
----.gitignore(23B)
----.github()
--------workflows()
--------funding.yml(91B)
----test()
--------fixture(6B)
--------file-descriptor.test.js(1KB)
--------basic.test.js(648B)
----.gitattributes(19B)
----package.json(733B)
----index.test-d.ts(176B)
----readme.md(692B)
----index.js(961B)
----index.d.ts(865B)
----.editorconfig(175B)
----license(1KB)
----.npmrc(19B)

网友评论