Dependency table

July 5, 2026 ยท View on GitHub

๐Ÿ“ฆ 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.

Dependency table

Add a table of dependencies to markdown files via markdown-magic

Install

npm i markdown-magic markdown-magic-dependency-table --save-dev

Adding the plugin

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);

Usage in markdown

DependencyDescriptionVersionLicenseType
find-up@^8.0.0Find a file or directory by walking up parent directories8.0.0MITproduction
semver@^7.0.0The semantic version parser used by npm.7.8.5ISCproduction
markdown-magic@^4Automatically update markdown files with content from external sources4.11.0MITpeer
markdown-magic@^4.0.0Automatically update markdown files with content from external sources4.11.0MITdev
prettier@^3.0.0Prettier is an opinionated code formatter3.9.4MITdev
vitest@^4.0.0Next generation testing framework powered by Vite4.1.9MITdev

Options

  • production (false) - include production dependencies
  • dev (false) - include development dependencies
  • optional (false) - include optional dependencies
  • peer (false) - include peer dependencies