npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

upipes

v0.1.0

Published

一个用于组织多个函数执行的流式处理器

Readme

upipes

一个用于组织多个函数执行的流式处理器

found

createPipes createEventPipes createObservable

pipe

observable

todo

  • createObservable 自定义订阅者
    • 允许多个订阅者,同 rxjs.subject
    • 可以取消订阅
    • 可以指定订阅次数
  • interval
    • 定时器
  • defer
    • 定时器
  • of(Array)
    • 数序发射所有
  • concatAll
    • Promise.all
  • raceAll
    • Promise.race
  • anyAll
    • Promise.any
  • allSettled
  • fromAny
    • 会结构所有的参数
    • 默认
      • 结构一维数组
      • 等待 promise
      • 等待 pipe
    • 支持传入函数自定义

operators

todo

  • buffer

    • websocket 压缩数量后发射
    • 点击了一定数量后开启
  • catchError

    • 语法糖,只处理异常
  • complete

    • 语法糖,结束时出发
  • map 处理正常

    • 语法糖,正常时触发
  • take

    • 只处理指定数量,之后自动销毁
  • tap

    • 调试
  • delay

    • 延迟
  • filter

    • 筛选
  • retry

    • 出错时,自动重试
  • timeout

    • 超时后自动关闭,未完成的会直接丢弃
  • mergeMap()

    • 控制并发
  • switchMap(timer)

    • 设置时间内,订阅新的,丢弃旧的
  • debounce(number | pipe | fn)

    • 防抖,一定时间内,多次触发同一个事件,只执行最后一次操作
  • throttle

    • 节流,一定时间内,多次触发同一个事件,只执行第一次操作