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); //without #
    </script> 
  </body>
</html>

LICENSE

© MIT License

Package Sidebar

Install

npm i dcounts-js

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • welksonramos