https://github.com/detalhar/dcounts-js
Tiny count characters with no dependencies
https://github.com/detalhar/dcounts-js
characters count es6 javascript library tiny
Last synced: 5 months ago
JSON representation
Tiny count characters with no dependencies
- Host: GitHub
- URL: https://github.com/detalhar/dcounts-js
- Owner: detalhar
- License: mit
- Created: 2017-03-31T13:44:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T19:23:00.000Z (almost 8 years ago)
- Last Synced: 2025-10-06T23:11:23.626Z (9 months ago)
- Topics: characters, count, es6, javascript, library, tiny
- Language: JavaScript
- Homepage: https://detalhar.github.io/dcounts-js/
- Size: 63.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dCounts-js [](https://travis-ci.org/detalhar/dcounts-js) [](https://www.npmjs.com/package/dcounts-js) [](https://packagephobia.now.sh/result?p=dcounts-js)
> Tiny count characters with no dependencies

## How to use:
### Installation
**Using npm:**
`npm install dcounts-js --save`
**Manually:** Download **_dcounts-js.min.js_** from this repo and add before the closing body tag:
```html
```
**Usage:**
```js
dcounts('selector', limit);
```
where **_selector_** _input_ or _textarea_ is a ID and _**limit**_ is a number.
**Full Example:**
```html
...
<input id="my_input_text" type="text" />
...
<script src="path/to/dcounts-js.min.js">
dcounts('my_input_text', 20); //without #