open-index/open-npm huggingface dataset:
npm package: @johnwayne/counters
Description: Package with two counters `Counter` and `DecreasingCounter` constructors.
Author: CodeRoad
Latest version: 1.0.1

# @johnwayne/counters

Package with two counters `Counter` and `DecreasingCounter` constructors.

## Installation
```
npm install @johnwayne/counters
```

## Usage

To run demo app clone this repo and simply run:

```
npm install
```
```
npm start
```

## API

Every counter get one argument - selector of element to be rendered in. 
Counter should be initialized after creating by calling '.init()' method.

``` javascript
import { Counter, DecreasingCounter } from '@johnwayne/counters' 

const counter1 = new Counter('.counter-1')
counter1.init()
const counter2 = new DecreasingCounter('.counter-2')
counter2.init()
```