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

biany-test

v1.0.8

Published

<!-- * @Description: file content * @Author: kyle * @Date: 2021-09-30 09:23:18 * @LastEditors: kyle * @LastEditTime: 2021-09-30 16:49:23 -->

Readme

{
  "name": "biany-test",
  "version": "1.0.0",
  "description": "",
  "bin": {
    "biany-test": "bin/index.js" // 告诉 package.json, 我的 bin 叫 biany-test, 它可执行的文件路径是 bin/index.js
  },
  "main": "index.js", // 包的入口文件
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

记录

  1. npm 账户登录 npm login <=> yarn 执行 yarn login 自动登录 npm 账户
  2. npm publish 发布包 <=> yarn publish 同样发布 npm 包
  3. npm i -g biany-test 全局安装软件 <=> yarn global add biany-test 同样全局安装软件
  4. 全局安装的软件 直接使用 biany-test 命令运行 => 局部安装的软件 需要指定对应的目录地址文件运行(在当前工程和安装当前的软件,不会下载资源到 node_modules)
  5. (bash 命令) which biany-test 查看软件安装路径 => /c/Users/LEGIONy7000/AppData/Local/Yarn/bin/biany-test
  6. (bash 命令) ll /c/Users/LEGIONy7000/AppData/Local/Yarn/bin/biany-test 查看该路径,指定文件的详情 => -rwxr-xr-x 1 LEGIONy7000 197121 360 9月 30 09:43 /c/Users/LEGIONy7000/AppData/Local/Yarn/bin/biany-test*

windows 配置 vscode 全局管理员权限 => 使用 npm link 软连接的模式开发 node

  1. 每个包都使用 npm link 创建自己的软连接;
  2. 在需要引用的工程中使用npm link XXX-XXX引入资源包;
  3. 在 dependencies 中手动添加资源包 XXX-XXX: ^1.0.0;

PS:

  1. 资源包(以库的形式引入使用时)的"main"文件入口,需要配置为要调用的 .js 文件路径 "main": "lib/index.js";
  2. npm link 开发模式的优势是,运行调试时都是最新的代码;