mos-plugin-dependencies

2018-10-12 admin

mos-plugin-dependencies是什么

什么是mos-plugin-dependencies,A mos plugin that creates dependencies sections

mos-plugin-dependencies使用教程帮助文档

mos-plugin-dependencies

A mos plugin that creates dependencies sections

npm version

Installation

npm i -S mos-plugin-dependencies

Usage

Add this code snippet somewhere in your markdown file:

<!--@dependencies()-->
<!--/@-->

Run mos in the terminal.

You’ll get a dependencies section with the list of the dependencies used in the package.

## Dependencies

- [async-regex-replace](https://github.com/pmarkert/async-regex-replace): regex replacements using asynchronous callback functions
- [chalk](https://github.com/chalk/chalk): Terminal string styling done right. Much color.

API

dependencies(opts) - create a section with the list of dependencies

devDependencies(opts) - create a section with the list of dev dependencies

  • opts.shield - boolean or string - tells whether to add a dependency shield or not. If true, adds a shield using default styling. If a string, adds a shield with the style specified by the string. Is false by default.

License

MIT © Zoltan Kochan

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-42527.html

文章标题:mos-plugin-dependencies

回到顶部