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

share-snippets-demo

v0.0.3

Published

VS Code Plugin Share Snippets Support demo

Downloads

11

Readme

share-snippets-demo

VS Code插件Share Snippets 支持的代码片段示例npm package

VS Code Plugin Share Snippets Support code snippets demo npm package

目录 category

.
├── README.md
├── package.json
├── share_snippets
│   ├── comment                     # 注释相关
│   │   └── comment.code-snippets
│   ├── components                  # 组件相关
│   │   ├── comonent.code-snippets
│   │   └── myButton.share-snippets
│   ├── js                          # js相关
│   │   └── js.code-snippets
│   └── vue                         # vue相关
│       └── vue.code-snippets
├── test                            # 测试自定义片段的文件
│   └── test.vue
└── transferFileToSnippetBody.js    # 功能函数

Snippets规则,如何编写

Snippets rules, how to write

本仓库中的 Snippets

Snippets in this project

share_snippets目录中的内容

| prefix | scope | comment | | :----: | :----------------------------: | :------------------------: | | author | javascript,typescript,vue | author info | | ctdl | javascript,typescript,vue,jsx | TODO Comment Line | | ctdb | javascript,typescript,vue,jsx | TODO Comment Block | | vcapi | javascript,typescript,vue,jsx | Vue Component-api template | | ctdb | vue | Array Fill |

如何快速生成snippet中的body的内容

How quickly generate the content of body in snippet

TIPS:需要安装Node

TIPS: Need install Node

使用提供的transferFileToSnippetBody.js文件

Use the provided transferFileToSnippetBody.js file

node transferFileToSnippetBody.js filename1 filename2 filename3 ...

快速将指定的文件中的内容转成 [context]的形式

Quickly convert the contents of the specified file into the form of [context] demo:

node transferFileToSnippetBody.js test.vue

会在当前目录下生成test.vue.json文件里面的内容即可直接粘贴到.code-snippets文件的body属性中

The content in the test.vue.json file generated in the current directory can be directly pasted into the body attribute of the .code-snippets file