All Projects → johndatserakis → vue-countable

johndatserakis / vue-countable

Licence: MIT license
✍️ Vue binding for countable.js. Provides real-time paragraph, sentence, word, and character counting.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-countable

textics
📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.
Stars: ✭ 36 (+44%)
Mutual labels:  counter, characters
urdu-characters
📄 Complete collection of Urdu language characters & unicode code points.
Stars: ✭ 24 (-4%)
Mutual labels:  words, characters
UIImageViewWithWords
Create UIImageView with words in Swift
Stars: ✭ 89 (+256%)
Mutual labels:  words, characters
CounterView
一个数字变化效果的计数器视图控件
Stars: ✭ 38 (+52%)
Mutual labels:  count, counter
sp who3
The sp_who3 stored procedure is a custom and open source alternative to the sp_who system stored procedures available in SQL Server.
Stars: ✭ 49 (+96%)
Mutual labels:  count
yii2-stat
Yii2 Multi Web Statistic Module (yametrika, google-analytic, own db-counter)
Stars: ✭ 18 (-28%)
Mutual labels:  counter
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+1756%)
Mutual labels:  count
CSGSI
A simple C# library to interface with Counter-Strike: Global Offensive's Game State Integration
Stars: ✭ 124 (+396%)
Mutual labels:  counter
Unity-FPS-Counter
#NVJOB FPS Counter and Graph. Free Unity Asset.
Stars: ✭ 44 (+76%)
Mutual labels:  counter
dialectID siam
Dialect identification using Siamese network
Stars: ✭ 15 (-40%)
Mutual labels:  words
counter
🔢 Tally counter for Android
Stars: ✭ 88 (+252%)
Mutual labels:  counter
fresh-coffee-listener
Using a raspberry pi, we listen to the coffee machine and count the number of coffee consumption
Stars: ✭ 52 (+108%)
Mutual labels:  counter
Characters of the Three Kingdoms
3️⃣ Characters of the Three Kingdoms - 三国人物结构化数据
Stars: ✭ 100 (+300%)
Mutual labels:  characters
KeysPerSecond
A keys-per-second meter & counter. Written for osu! but should work for other rhythm games too.
Stars: ✭ 238 (+852%)
Mutual labels:  counter
chinese-tokenizer
Tokenizes Chinese texts into words.
Stars: ✭ 72 (+188%)
Mutual labels:  words
hanzi-pinyin-font
Chinese font displaying Hanzi (汉字) characters with by transliteration/pronunciation (Pīnyīn).
Stars: ✭ 79 (+216%)
Mutual labels:  characters
CtrlUI
CtrlUI (Controller User Interface) is a Windows application, game and emulator launcher for your game controller, DirectXInput converts your game controller to a Xbox (XInput) controller, Fps Overlayer is a tool that shows the frames per second and the cpu, gpu and memory information.
Stars: ✭ 39 (+56%)
Mutual labels:  counter
vocascan-frontend
A highly configurable vocabulary trainer
Stars: ✭ 26 (+4%)
Mutual labels:  words
recount
R package for the recount2 project. Documentation website: http://leekgroup.github.io/recount/
Stars: ✭ 40 (+60%)
Mutual labels:  count
count.macro
Babel macro for counting number of lines or words in files at compile time
Stars: ✭ 20 (-20%)
Mutual labels:  count

vue-countable

Vue binding for countable.js. Provides real-time paragraph, sentence, word, and character counting.

NPM Version NPM Downloads License Tweet

Demo

View Demo | View on NPM | View on GitHub

Install

# npm
npm i vue-countable

# yarn
yarn add vue-countable

Or you can include it through the browser at the bottom of your page:

<script src="https://unpkg.com/vue-countable/dist/vue-countable.min.js"></script>

About

Simple way to count characters, words, sentences, and paragraphs in your Vue apps.

Pass your text as a prop to the provided component, along with a unique elementId, and register for the change event to get real-time count updates.

Usage Example

import VueCountable from 'vue-countable'
Vue.component('vue-countable', VueCountable)
<!-- In your html - Make sure the elementId prop is unique on your page. -->
<vue-countable
    :text="myText" // Your text variable
    :elementId="'myId'" // A unique string id
    @change="change" // Register for the change event
></vue-countable>

<!-- The @change function -->
change (event) {
    console.log(event)
    // event.words to get word count, etc.
}

Now, anytime (and on component initialization) your myText variable changes, vue-countable will emit an event containing the details of your text. Register for this event as shown above to get your real-time counts.

Props

prop type description
text String Text you want to track.
elementId String A unique id for your tracking instance. This allows you to have multiple different counts on the same page.
hardReturns Boolean (Optional, defaults to false) Require two returns to count paragraphs
stripTags Boolean (Optional, defaults to false) Remove HTML before counting
ignore Array of Strings (Optional, defaults to empty) Characters to be ignored.

Events

event value description
change Object Provides character, word, sentence, paragraph, and all values.

Development

# install dependencies
npm install

# serve with hot reload
npm run watch

# run the tests
npm run test

# build demo page
npm run build:example

# build library
npm run build:library

# build everything and run tests
npm run build

Other

Go ahead and fork the project! Submit an issue if needed. Have fun!

Thank You

Sacha Schmid for countable.js.

License

MIT

Packaged with a mixture of vue-lib-template and vue-sfc-rollup. Using webpack 4.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].