dom cursor stream DOMCursor对象作为可读流
dom-cursor-stream dom-cursor-stream是一个将对象包装在可读流中的模块。安装$ npm install dom-cursor-stream用法var readable = require ( 'dom-cursor-stream' ) var through = require ( 'through2' ) var cursor = navigator . mozContacts . getAll ( ) readable ( cursor ) . on ( 'error' , console . error . bind ( console ) ) . pipe ( through . obj ( function ( contact , enc , next ) { console . log ( 'contact:' , c
用户评论