🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@vant/markdown-vetur

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vant/markdown-vetur

simple parse markdown to vue component description for vetur auto-completion

latest
Source
npmnpm
Version
2.3.0
Version published
Maintainers
5
Created
Source

Vant Markdown Vetur

将 .md 文件转换成能描述 vue 组件的 .json 文件,供 WebStorm 和 vscode 的 vetur 插件读取,从而可以在 vue 模版语法中拥有自动补全的功能。

Install

# with npm
npm i @vant/markdown-vetur -D

# with yarn
yarn add @vant/markdown-vetur -D

# with pnpm
pnpm add @vant/markdown-vetur -D

API

parseAndWrite

解析目录下所有匹配的文件,并输出为 tags.json 和 attributes.json

interface Options {
  // 需要解析的文件夹路径
  path: PathLike;
  // 文件匹配正则
  test: RegExp;
  // 输出目录
  outputDir: string;
  // 递归的目录最大深度
  maxDeep?: number;
  // 解析出来的组件名前缀
  tagPrefix?: string;
}

FAQs

Package last updated on 10 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts