1.1.0 • Published 3 years ago

@lolekxdpl/counters v1.1.0

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

@lolekxdpl/counters

package with two counters Counter and DecreasingCounter constructors

Instalation

npm install @lolekxdpl/counters

Usage

To run demo app clone this repo and siply run:

npm install
npm start

API

Every counter gets two arguments:

-selectorof element to be rendered in. -start number.

Counter should be initialized after creation by calling .init() method

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

const counter1 = new Counter('.counter-1',5)
counter1.init()
const counter2 = new DecreasingCounter('.counter-2',-12)
counter2.init()
1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago