flyd-aftersilence

0.1.0 • Public • Published

flyd-aftersilence

Buffers values from a source stream in an array and emits it after a specified duration of silience from the source stream.

Signature

`Stream a -> Stream b

Example

afterSilence(function(values) {
  console.log('You achieved a combo of + values.length + '!');
}, afterSilence(1000, birdsShot);
afterSilence(function(values) {
  console.log('You typed: "' + values.join('') + '" without any pauses');
}, afterSilence(300, characterTyped);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i flyd-aftersilence

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • paldepind