Skip to content

huijari/moisture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom emitter for Most

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published