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

camacho/markdown-magic-package-scripts

Repository files navigation

📦 This package has moved. It now lives in the markdown-magic-plugins monorepo at packages/package-scripts. This repository is archived; issues and contributions go to the monorepo.

package.json scripts

Add a table of scripts from package.json to markdown files via markdown-magic

Install

yarn add -D markdown-magic markdown-magic-package-scripts

Adding the plugin

See example.js for usage.

import path from 'path';
import { markdownMagic } from 'markdown-magic';
import SCRIPTS from './index.js';

const config = {
  matchWord: 'AUTO-GENERATED-CONTENT',
  transforms: {
    SCRIPTS,
  },
};

const markdownPath = path.join(import.meta.dirname, 'README.md');
await markdownMagic(markdownPath, config);

Usage in markdown

Script Description
docs generate docs
empty echo "this is just an example"
format format code
prepublishOnly npm run docs
test vitest run

About

Add a table of scripts from package.json to markdown files

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors