moisture
v1.0.0
Published
Custom emitter for Most
Downloads
2
Readme
moisture
Custom emitter for Most
Examples of use
import moist from 'moisture';
const stream = moist();
stream
.map(x => x * 2)
.observe(console.log.bind(console));
stream
.emit(1)
.emit(2)
.emit(3);
const value = moist();
value
.map(input => input.trim())
.observe(console.log.bind(console));
const input = h('input', {
oninput: e => value.emit(e.target.value)
});