moisture

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i moisture

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • huijari