Countable.js – A JavaScript function to Add Live paragraph-, word- and character-counting

Advertisement

Countable is a JavaScript function to add live paragraph-, word- and character-counting to an HTML element. Countable is a zero-dependency library and comes in at 1KB when minified and gzipped.

Countable offers easy-to-use methods you can use in your project. Countable.live() and Countable.once() accept one or more HTML elements and a callback that receives one parameter — holding all counted values — and this bound to the relevant element.

To enable full live-counting on an element, call Countable.live().

countable-js

Demo & Source