🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

dom-value-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-value-stream

transform domevents into values

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

dom-value-stream

Transform a stream of DOMEvents to the values they represent (in the case of inputs).

var events = require('dom-event-stream')
  , values = require('dom-value-stream')

events(document.querySelector('#source'), 'keyup')
  .pipe(values())
  .pipe(output())

API

values(placeholder='') -> ValueTransform

Returns a transform stream that translates DOMEvents into values over time (it looks at ev.target.value).

If ev.target.value is null or undefined, placeholder is emitted instead. This will be an empty string if not given as a parameter.

License

MIT

Keywords

dom

FAQs

Package last updated on 16 Jan 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