Skip to content
This repository was archived by the owner on Jul 5, 2026. It is now read-only.

camacho/markdown-magic-dependency-table

Repository files navigation

📦 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

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

Options

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

About

Render markdown of dependencies with information and links

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors