A mos plugin that creates dependencies sections
npm i -S mos-plugin-dependencies
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.
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. Iftrue
, adds a shield using default styling. If astring
, adds a shield with the style specified by the string. Isfalse
by default.