camacho / markdown-magic-engines

Print engine requirements from package.json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown-magic-engines

Print engine requirements from package.json via markdown-magic

Install

yarn add -D markdown-magic markdown-magic-engines

Note: markdown-magic is a peer dependency and must be installed separately from this module

Adding the plugin

See example.js for usage.

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

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

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

Usage in markdown

  • node: >=8.0.0

About

Print engine requirements from package.json

License:MIT License


Languages

Language:JavaScript 100.0%