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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@3-/fli

v0.1.6

Published

[test/main.coffee](./test/main.coffee) :

Downloads

41

Readme

@3-/fli

test/main.coffee :

#!/usr/bin/env coffee

> @3-/fli

url_list = [
  "https://jsonplaceholder.typicode.com/posts/1"  # 一个返回 JSON 的公共 API
  "https://jsonplaceholder.typicode.com/posts/2"
  "https://jsonplaceholder.typicode.com/posts/3"
  "https://jsonplaceholder.typicode.com/posts/4"
  "https://jsonplaceholder.typicode.com/posts/5"
  "https://jsonplaceholder.typicode.com/posts/6"
  "https://jsonplaceholder.typicode.com/posts/7"
  "https://jsonplaceholder.typicode.com/posts/8"
  "https://jsonplaceholder.typicode.com/posts/9"
  "https://jsonplaceholder.typicode.com/posts/10"
]
iter = fli(
  url_list
  (url)=>
    (await fetch(url)).json()
)

# console.log await iter.next()
# console.log await iter.next()
# console.log await iter.next()

for await [r, err] from fli(
  url_list
  (url)=>
    (await fetch(url)).json()
  3
)
  console.log '\n'+r.id+'\n',r, err

output :


4
 {
  userId: 1,
  id: 4,
  title: 'eum et est occaecati',
  body: 'ullam et saepe reiciendis voluptatem adipisci\n' +
    'sit amet autem assumenda provident rerum culpa\n' +
    'quis hic commodi nesciunt rem tenetur doloremque ipsam iure\n' +
    'quis sunt voluptatem rerum illo velit'
} undefined

5
 {
  userId: 1,
  id: 5,
  title: 'nesciunt quas odio',
  body: 'repudiandae veniam quaerat sunt sed\n' +
    'alias aut fugiat sit autem sed est\n' +
    'voluptatem omnis possimus esse voluptatibus quis\n' +
    'est aut tenetur dolor neque'
} undefined

6
 {
  userId: 1,
  id: 6,
  title: 'dolorem eum magni eos aperiam quia',
  body: 'ut aspernatur corporis harum nihil quis provident sequi\n' +
    'mollitia nobis aliquid molestiae\n' +
    'perspiciatis et ea nemo ab reprehenderit accusantium quas\n' +
    'voluptate dolores velit et doloremque molestiae'
} undefined

7
 {
  userId: 1,
  id: 7,
  title: 'magnam facilis autem',
  body: 'dolore placeat quibusdam ea quo vitae\n' +
    'magni quis enim qui quis quo nemo aut saepe\n' +
    'quidem repellat excepturi ut quia\n' +
    'sunt ut sequi eos ea sed quas'
} undefined

8
 {
  userId: 1,
  id: 8,
  title: 'dolorem dolore est ipsam',
  body: 'dignissimos aperiam dolorem qui eum\n' +
    'facilis quibusdam animi sint suscipit qui sint possimus cum\n' +
    'quaerat magni maiores excepturi\n' +
    'ipsam ut commodi dolor voluptatum modi aut vitae'
} undefined

9
 {
  userId: 1,
  id: 9,
  title: 'nesciunt iure omnis dolorem tempora et accusantium',
  body: 'consectetur animi nesciunt iure dolore\n' +
    'enim quia ad\n' +
    'veniam autem ut quam aut nobis\n' +
    'et est aut quod aut provident voluptas autem voluptas'
} undefined

10
 {
  userId: 1,
  id: 10,
  title: 'optio molestias id quia eum',
  body: 'quo et expedita modi cum officia vel magni\n' +
    'doloribus qui repudiandae\n' +
    'vero nisi sit\n' +
    'quos veniam quod sed accusamus veritatis error'
} undefined

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。