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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    2
    • latest

Version History

Package Sidebar

Install

npm i npm-counter-example

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

6.46 kB

Total Files

6

Last publish

Collaborators

  • manikrishna