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"
});

Package Sidebar

Install

npm i catdown-wordcount

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zuren