1.0.0 • Published 7 years ago

moisture v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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)
});
1.0.0

7 years ago