📦 This package has moved. It now lives in the markdown-magic-plugins monorepo at
packages/dependency-table. This repository is archived; issues and contributions go to the monorepo.
Add a table of dependencies to markdown files via markdown-magic
npm i markdown-magic markdown-magic-dependency-table --save-dev
See example.js for usage.
import path from 'path';
import { markdownMagic } from 'markdown-magic';
import DEPENDENCYTABLE from './index.js';
const config = {
matchWord: 'AUTO-GENERATED-CONTENT',
transforms: {
DEPENDENCYTABLE,
},
};
const markdownPath = path.join(import.meta.dirname, 'README.md');
await markdownMagic(markdownPath, config);| Dependency | Description | Version | License | Type |
|---|---|---|---|---|
| find-up@^8.0.0 | Find a file or directory by walking up parent directories | 8.0.0 | MIT | production |
| semver@^7.0.0 | The semantic version parser used by npm. | 7.8.5 | ISC | production |
| markdown-magic@^4 | Automatically update markdown files with content from external sources | 4.11.0 | MIT | peer |
| markdown-magic@^4.0.0 | Automatically update markdown files with content from external sources | 4.11.0 | MIT | dev |
| prettier@^3.0.0 | Prettier is an opinionated code formatter | 3.9.4 | MIT | dev |
| vitest@^4.0.0 | Next generation testing framework powered by Vite | 4.1.9 | MIT | dev |
- production (false) - include production dependencies
- dev (false) - include development dependencies
- optional (false) - include optional dependencies
- peer (false) - include peer dependencies