1.0.3 • Published 10 years ago

counts v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

counts

Count sets of stuff! This is useful for reference counting sets of things for which you have an identifier.

Install

npm install counts

Usage

var counts = new Counts()
counts.inc('foo')
counts.inc('foo', 2)
counts.get('foo') // returns 3
counts.dec('foo')
counts.dec('foo', 2)
counts.has('foo') // return false
1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago