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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sy-link-code

v1.0.2

Published

两种方式:

Readme

mac 用户设置全局变量code

两种方式:

1.打开 VS Code,打开控制面板 (​​⇧⌘P​​​),输入 ‘shell command’,在提示里看到 ​​Shell Command: Install 'code' command in PATH​​,运行它就可以了

2.使用命令:

  第一步:vim ​.bash_profile
  第二步按键盘i进入编辑状态
  第三部:export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/:/app/bin"
  如果有多个环境变量可以使用:分开,例如
  export PATH="\$PATH:path1:path2:path3

window 用户设置全局变量code

配置:

1.打开 vscode

2.按 Ctrl + Shift + P 你会在输入框看到 > 不要删除它

3.在它后面接着敲 path

4.然后你可以找到一个选项叫 Shell Command: Install 'code' command in PATH

5.鼠标点击它 或者 键盘选择中后按回车

校验:

在某一个文件夹下运行终端程序(命令行面板) 在命令行面板输入code .

使用

1. webpack 配置
引用 const  {devserver} = require('sy-link-code/index')
{
  ...config,
  start: {
    ...start.config,
    module: {
      rules: [{
        test: /\.vue$/,
        use: ['sy-link-code']
      }]
    },
    devServer: {
      ...devServer.config,
      ...devserver,
    }
  }
}

2. vue 入口文件.js
import CodeLink from 'sy-link-code/client'
new CodeLink({
  type: 'vsCode或者webStorm',
  url: 'http://localhost:xxxx或者https://localhost:xxxx'
})


3. 按shift + click(选中的dom元素) 既可跳转对应的vscode 的vue 文件

   ps: 不需要打开F12点击dom ,只需要点击视图