catdown-wordcount

1.0.0 • Public • Published

catdown-wordcount

Catdown plugin. Emits a "wordcount" event with a number and a pluralised string every time the editor is changed.

Usage

Install with npm.

$ npm install --save catdown-wordcount

use it on your Catdown editor.

editor.use(require("catdown-wordcount"));

Then bind some events to it.

editor.on("wordcount", function(num, msg){
	// num === 2
	// msg === "2 words"
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i catdown-wordcount

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zuren