Skip to content

camacho/markdown-magic-package-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

const fs = require('fs');
const path = require('path');
const markdownMagic = require('markdown-magic');

const config = {
  transforms: {
    SCRIPTS: require('./index.js'),
  },
};

const markdownPath = path.join(__dirname, 'README.md');
markdownMagic(markdownPath, config);

Usage in markdown

Script Description
docs generate docs
empty echo "this is just an example"
format format code
prepublish npm hook to run before publishing

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published