markdown-magic-version-badge
Version badge via Markdown Magic
Last updated 3 years ago by camachgk .
MIT · Original npm · Tarball · package.json
$ cnpm install markdown-magic-version-badge 
SYNC missed versions from official npm registry.

Version badge plugin

Add version badge to markdown files via markdown-magic

Install

npm i markdown-magic markdown-magic-version-badge --save-dev

Adding the plugin

See example.js for usage.

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

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

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

Usage in markdown

npm

Options

  • pkg (nearest package.json file in file tree from the README by default) - path to closest pkg
  • link (links to npm by default) - a URL to link the button to (set to false to prevent link)
  • prefix (npm by default) - the prefix for the badge
  • color (green by default or orange if pre-release version) - any supported color

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

3 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           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 5
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |