Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

npm-counter-example

1.0.4 • Public • Published

Increment & Decrement Counter

This is a Simple Javascript stepcounter

Note

Add incrementorAndDecrementor.js to your html file

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>StepCounter</title>
 
    <script src="../node_modules/npm-counter-example/incrementorAndDecrementor.js"></script> 
</head>
<body>
<div id="countByOne"></div>
</body>
</html>

Step 1: add some class to the div.

<div id="countByOne"></div>

Step 2: Initialize the plugin on your page. For example

// initialize with defaults
  $('#countByOne').stepCounter();
 

Using NPM

To install using the npm package manager run:

$ npm install npm-counter-example

Contribute

Contributions are always welcome!

Install

npm i npm-counter-example

DownloadsWeekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

6.46 kB

Total Files

6

Last publish

Collaborators

  • avatar