🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

dom-cursor-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-cursor-stream

DOMCursor objects as readable streams.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

dom-cursor-stream

dom-cursor-stream is a module that wraps up DOMCursor objects in readable streams.

Build status

install

$ npm install dom-cursor-stream

usage

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:', contact.name.join('\n'))
    next()
  }))

Keywords

DOMCursor

FAQs

Package last updated on 16 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts