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

@build-script/autoindex

v0.0.12

Published

从整个项目所有ts文件中收集导出,生成一个`autoindex.generated.ts`文件,放在`tsconfig.json`旁边。

Readme

autoindex - 创建导出索引

从整个项目所有ts文件中收集导出,生成一个autoindex.generated.ts文件,放在tsconfig.json旁边。

  • “整个项目”是指通过TypeScript api,获取到“运行tsc -p时会读取的文件”列表

使用方法

autoindex [--watch] [--debug] [...] project

可用选项:

  • -w, --watch: 监听文件变化,自动更新索引

  • -d, --debug: 输出调试信息

  • -o, --output <filename>: 输出文件路径,默认为./autoindex.generated,相对于tsconfig.json所在目录。

  • --exclude <pattern>: 排除某些文件或目录,可多个。相当于额外添加到tsconfig.json的exclude字段中

  • --include <pattern>: 包含某些文件或目录,可多个。相当于额外添加到tsconfig.json的include字段中

  • -b, --blacklist <pattern>: 忽略匹配的符号名称,可多个,仅支持 * 作为通配符。

  • -a, --absolute <#??>: 默认生成类似 import './xxx' 的相对路径,使用此选项会变成类似 import '#??/xxx' 的绝对路径。

  • --skip-tag <tag>: 忽略被 @tag 注释的符号,可多个,不传时默认 internal,传入任意值则不带此默认。

  • --no-config: 不读取config/autoindex.json文件,仅使用命令行参数。

  • project: 项目使用的tsconfig.json路径(或其目录)。