Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vant/markdown-vetur

Package Overview
Dependencies
Maintainers
4
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

Source
npmnpm
Version
2.0.1
Version published
Maintainers
4
Created
Source

Vant Markdown Vetur

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

Install

NPM

npm i @vant/markdown-vetur -D

YARN

yarn add @vant/markdown-vetur --dev

API

parseAndWrite

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

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

FAQs

Package last updated on 11 Apr 2020

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