1.1.0 • Published 3 years ago
andis_as_pack v1.1.0
andis_as_pack - test own package
Package with two counters 'Counter' & 'Decreasing'
instalation
npm install andis_as_pack
Usage
To run demo app clone this repo & simply run
npm install
npm start
API
Every counter gets two arguments 1. selector of element to be rendered in 2. start number optional, default 0
Counter should be initialized after creation by calling .init()
method
import * as dist from 'andis_as_pack'
console.log(dist)
import {Counter, Decreasing} from '../dist'
const counter1 = new Counter('.counter-1', 10)
counter1.init()
const counter2 = new Decreasing('.counter-2', 20)
counter2.init()