【文件属性】:
文件名称:node-then-eos:基于 Promise 的流结束
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-14 20:16:03
JavaScript
then-eos
基于 Promise 的流结束。
安装
npm i then-eos -S
用法
var fs = require ( 'fs' ) ;
var eos = require ( 'then-eos' ) ;
var stream = fs . createReadStream ( 'LICENSE' ) ;
eos ( stream ) . then ( function ( ) {
// Reached end of the stream
} ) ;
执照
麻省理工学院许可。
【文件预览】:
node-then-eos-master
----LICENSE(1KB)
----README.md(303B)
----.gitignore(28B)
----index.js(335B)
----package.json(432B)