markdown-magic-package-scripts
Print list of scripts in package.json with descriptions
Last updated 3 years ago by camachgk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install markdown-magic-package-scripts 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.1                                ...           latest (3 years ago)

4 Versions

  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 14
Last Day 1
Last Week 0
Last Month 49
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |