🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

dcounts-js

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcounts-js

Tiny count characters with no dependencies

0.1.0
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

count

FAQs

Package last updated on 31 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts