simple-counter

0.0.3 • Public • Published

simple-counter

dead simple stats counter that flushes to disk.

p

install

api

$ npm install simple-counter

bin

npm install -g simple-counter

usage

api

var sc = require('simple-counter');
// returns an http server.
var server = sc('/my/dir');
server.listen(port);

bin

$ simple-counter /my/dir 8080

pass port and dir in any order and defaults to 8888 and {module_dir}/data.

http api

GET /count/{key}

increments {key}

GET /count/{key}.gif

returns a one pixel transparent gif and increments {key}.

GET /report/{key}

returns {key} count

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i simple-counter

Weekly Downloads

0

Version

0.0.3

License

BSD

Last publish

Collaborators

  • amasad