1.0.3 • Published 4 years ago
listpackage
Licence
ISC
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
ListPackage
- Counter and more!
Using Counter:
// importing a listpackage module
const {Counter} = require('listpackage')
// creating a counter
var list = new Counter({
'name':'test',
'notify':true
})
list.set(12) // seting 12 on counter
list.remove(12)// removing 12 on counter
list.add(2) //adding 2 on counter
list.add(1000)// adding 1000 in counter
console.log(list.value) // returning value of counter