bloody-streamtimer

0.0.0 • Public • Published

stream-timer

browser support

install

$ npm install bloody-streamtimer

require

var timer = require("bloody-streamtimer")

api

timer(duration=0) > stream

creates a timer that emits data from 0 to 1 while running the timer.

example

timer(300)
  .pipe(stream.create(curr){
    element.style.top = String(curr * -100) + "%"
  })
  .on("end", function(){
    element.style.visibility = "hidden"
  })

Readme

Keywords

none

Package Sidebar

Install

npm i bloody-streamtimer

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • bloodyowl