Skip to content

Download stats #10

@walling

Description

@walling

What about including download stats as a parameter correlating to usage of a given module?

The raw data for node-modules package: http://isaacs.iriscouch.com/downloads/_design/app/_view/pkg?group_level=2&start_key=%5B%22node-modules%22%5D&end_key=%5B%22node-modules%22%2C%7B%7D%5D

Getting the data using request library:

request('http://isaacs.iriscouch.com/downloads/_design/app/_view/pkg', {
  json: true,
  qs: {
    group_level: '2',
    start_key: JSON.stringify([name]),
    end_key: JSON.stringify([name, {}])
  }
}, function(error, response, body) {
  // ...
});

The stats should be aggregated (per week, per month, per year).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions