Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetch a user's package count from Nuget

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 nuget-count.coffee
Octocat-spinner-32 nuget-count.js
Octocat-spinner-32 package.json
README.md

nuget-count

Build Status Fetch a user's package count from Nuget

Usage

get = require 'nuget-count'

success = (count) -> ...
error = (err) -> ...

(get 'someUserName').then success, error

Features

  • Uses promises

Implementation notes

  • Uses scraping (:[) because Nuget has no API.
  • Because of the scraping approach, we cannot differentiate between user that exist but have no repos, and users that don't exist. Either will return a rejected promise.

Supported environments

  • Node
  • CommonJS
Something went wrong with that request. Please try again.