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

@laucher1998/utils

v1.1.86

Published

一个基于typescript的跨平台的实用工具集,专为现代前端框架(如Vue、React等)设计,旨在简化开发流程、提高效率并确保代码的可维护性。集合大量前端常用工具,无论你是在构建响应式用户界面、处理异步操作还是优化性能,都是你的理想选择。

Downloads

1

Readme

laucher-utils

下面只对关键文件进行说明

  • index.d.ts ts类型声明文件
  • index.html 测试用的前端页面
  • package.json 包配置文件
  • "name": "viet-demo-test" 包的名字,要唯一,不能跟npm现有的包名重复,而且不能太短
  • vite.config.ts vite 配置文件
  • build: { lib: { entry: './lib/main.ts', name: 'Counter', fileName: 'counter' } }
  • entry为入口文件
  • name为打包后暴露的全局变量
  • lib 这个就是要上传到npm的编译前的代码目录,主要是在这个目录撸代码
  • src 为测试的代码目录

npm login --scope=@mycorp --registry=https://registry.npmjs.org

检查冲突: 在发布之前,你可以使用以下命令检查是否已经存在相同版本的包: npm show @laucher1998/utils versions --json 尝试发布: 在发布之前,可以先运行 npm publish 命令的 --dry-run 选项,看看有没有问题: npm publish --scope=@mycorp --registry=https://registry.npmjs.org --dry-run

LICENSE

MIT