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 🙏

© 2024 – Pkg Stats / Ryan Hefner

starter-lib-ts

v1.1.0

Published

TypeScript library starter template, provides VitePress documentation, supports building ESM, CJS and IIFE formats.

Downloads

125

Readme

TypeScript 库启动模板

Version Version

TypeScript 库启动模板,提供 VitePress 在线文档,支持构建 ESM、CJS 和 IIFE 格式。

特性

  • 使用 tsup 构建包 - 无需配置即可打包 TypeScript 库。
  • 开箱即用的 Vitest 单元测试。
  • VitePress 文档 - 零配置部署到 Netlify,并支持其他部署方式。
  • 使用 bumpp 进行管理版本,同时零配置发布到 npm

使用方法

从 GitHub 上 创建一个仓库 基于此模板。

git clone <git 远程地址>

安装 npm 依赖。

cd starter-lib-ts # 或者你的项目目录

pnpm i # 如果你没有安装 pnpm,运行:npm install -g pnpm

运行 dev 脚本来构建你的文件。

pnpm dev

要打开库的在线文档,你可以运行:

pnpm docs:dev

要构建库,你可以运行:

pnpm build

如果你想发布库,可以运行:

pnpm release

清理模板

如果你更喜欢手动操作并保持更清晰的 git 历史记录:

npx degit starter-collective/starter-lib-tsbstarter-lib-tsr-lib-ts

cd starter-lib-ts

pnpm i # 如果你没有安装 pnpm,运行:npm install -g pnpm

使用此模板时,请按照以下检查列表正确更新信息:

  • [ ] 更改 LICENSE 中的作者姓名。
  • [ ] 更改 package.json 中的包名。
  • [ ] 更改 docs/* 中的网站信息。

许可证

MIT 许可证 © 2024-PRESENT Kieran Wang