1.0.1 • Published 2 years ago

@meorganiaztion/counters v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@coderoadpl/counters

Package with two counters Counter and DecreasingCounter constructors.

Installation

npm install @coderoadpl/counters

Usage

To run demo app clone this repo and simply run:

npm install
npm start

API

Every counter gets one argument - selector of element to be rendered in. Counter should be initialized after creation by calling .init() method.

import { Counter, DecreasingCounter } from '@coderoadpl/counters'

const counter1 = new Counter('.counter-1')
counter1.init()

const counter2 = new DecreasingCounter('.counter-2')
counter2.init()
1.0.1

2 years ago

1.0.0

2 years ago