markdown-magic-install-command
Print install command for markdown file
Last updated 3 years ago by camachgk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install markdown-magic-install-command 
SYNC missed versions from official npm registry.

Install command plugin

Add install command to markdown files via markdown-magic

Install

yarn add -D markdown-magic-install-command

Adding the plugin

See example.js for usage.

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

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

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

Usage in markdown

yarn add --dev markdown-magic-install-command@1.3.1

Options

  • client (defaults to 'npm' unless yarn.lock found) - specify the client for the install command
  • flags (["--save"] by default) - any flags to be included (like -g)
  • peers (true by default) - include peer dependencies in install command
  • pkg (closest package.json by default) - package.json path (relative to the Markdown file)
  • exact (false by default) - add the exact version to the install command

Current Tags

  • 1.3.1                                ...           latest (3 years ago)

8 Versions

  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |