Add a table of subpackages to markdown files via markdown-magic
yarn add --dev markdown-magic markdown-magic-subpackage-table
See src/example.ts
for usage, or use it in your markdown.config.js file for CLI usage.
module.exports = {
transforms: {
SUBPACKAGETABLE: require('markdown-magic-subpackage-table'),
},
}
This is generated using this plugin src/example.ts
:
Package | Description | Version | License |
---|---|---|---|
example | Example subpackage to test this package | 1.1.1 | MIT |
- dir (./packages) - packages directory path
- sortKey ('name') - sort key to sort by, can be:
name
,link
,description
,version
orlicense
.