dcounts-js
0.1.0 • Public • Published dCounts-js
Tiny count characters with no dependencies
How to use:
Installation
Using npm:
npm install dcounts-js --save
Manually: Download dcounts.min.js from this repo and add before the closing body tag:
<script src="path/to/dcounts.min.js">
Usage:
dcounts('selector', limit);
where selector input or textarea is a ID and limit is a number.
Full Example:
...
<input id="my_input_text" type="text" />
...
<script src="path/to/dcounts-js.min.js"></script>
<script>
dcounts('my_input_text', 20);
</script>
</body>
</html>
LICENSE
© MIT License
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.1.0 | 0 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.1.0 | 0 | |
Package Sidebar
Install
Weekly Downloads