markdown-magic-wordcount

    0.0.2 • Public • Published

    Markdown Magic Word Count Plugin

    Plugin to count words in markdown file.

    Install

    npm i markdown-magic markdown-magic-wordcount --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: {
        // make sure wordcount transform is listed last
        WORDCOUNT: require('markdown-magic-wordcount')
      }
    }
     
    const markdownPath = path.join(__dirname, 'README.md')
    markdownMagic(markdownPath, config)

    Usage in markdown

    <!-- ⛔️ AUTO-GENERATED-CONTENT:START (WORDCOUNT) -->
    83
    <!-- ⛔️ AUTO-GENERATED-CONTENT:END -->

    Keywords

    none

    Install

    npm i markdown-magic-wordcount

    DownloadsWeekly Downloads

    5

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • davidwells