markdown-magic-subpackage-list
v2.1.0
Published
Print a list of subpackages for markdown file
Maintainers
Readme
Subpackage list plugin
Add a list of sub-packages with links via markdown-magic
Install
npm i markdown-magic markdown-magic-subpackage-list --save-devAdding the plugin
See example.ts for usage.
import path from 'path';
import { markdownMagic } from 'markdown-magic';
import SUBPACKAGELIST from './index.ts';
const config = {
matchWord: 'AUTO-GENERATED-CONTENT',
transforms: {
SUBPACKAGELIST,
},
};
const markdownPath = path.join(import.meta.dirname, 'README.md');
await markdownMagic(markdownPath, config);Usage in markdown
- example-package - example package description for the demo
Options
- dir -
./packagesby default - verbose -
falseby default - print out description of package - bullet -
*by default - set to1.to create a numbered list
