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

vv-snippet-tool

v1.0.15

Published

根据平时开发抽出常用代码片段,用于vscode插件自动补全

Downloads

9

Readme

VV-SNIPPET-TOOL

根据平时开发抽出常用代码片段,可用于vscode插件自动补全

  • 安装vscode插件:vv-fe-tools
  • 安装依赖vv-snippet-toolyarn add vv-snippet-tool -D

新建.vv-snippetrc.js(项目中如果不存在会直接读取vv-snippet-tool),非项目使用规则不要写在配置文件,可以在项目目录下的.vscode,添加随意文件名的规则文件作为自己本地使用的规则

module.exports = {
    extends: [require.resolve('vv-snippet-tool')],
    rules: {
        // 项目自定义规则,参考:https://code.visualstudio.com/docs/editor/userdefinedsnippets
    }
};

添加规则方法

  • 在目录src\snippets相应位置添加代码块,${1}……${n}为光标位置,可以用tab切换,${1:keyName}keyName为补全后默认选中的提示性文字

Change Log

v1.0.0 添加vv.前缀,可枚举出所有命令 新建部分通用规则代码

v1.0.1 添加1前缀,快捷去除ide其他重复命令,以快速输入唯一匹配自动补全命令; 优化规则代码

v1.0.2 增加生成规则方法

v1.0.3 重构代码片段生成规则,根据代码块单文件统一生成vscode插件自动补全命令及描述

v1.0.10 新增命令行新增基础模板、区块

下一步

  1. 动态参数配置如字段名、接口地址、后端返回数据、mock数据、国际化数据

模板使用

生成protable配置文件:vvt protable-config 根据配置文件修改后,vvt protable生成模板