0.0.2 • Published 7 years ago

markdown-magic-wordcount v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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 -->
0.0.2

7 years ago

0.0.1

7 years ago