npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uhunt-node

v1.0.4

Published

Get information of exercises from UVA Judge and uHunt.

Downloads

6

Readme

uhunt

Get information of exercises from UVA Judge and uHunt.

API Public: http://uhunt.felix-halim.net/api

Install

$ npm install uhunt --save

Use

Specific problem

// Get by id excercise
uhunt.byId(161).then((data) => {
    console.log(data);
/* =>
{ pid: 161,
  num: 225,
  title: 'Golygons',
  ce: 98,
  re: 164,
  tle: 297,
  mle: 1,
  wa: 1077,
  ac: 618,
  rtl: 3000,
  ... }
*/
}, error => {
    console.log(error);
})
// Get by number excercise
uhunt.byNum(100).then((data) => {
    console.log(data);
/* =>
{ pid: 36,
  num: 100,
  title: 'The 3n + 1 problem',  
  ce: 113277,
  re: 68349,
  ole: 323,
  tle: 59086,
  mle: 5209,
  wa: 275293,
  pe: 5049,
  ac: 195269,
  rtl: 3000,
  ... }
*/
}, error => {
    console.log(error);
})

User submissions

// Get data submissions from any user 
uhunt.getUserSubmission(339).then((data) => {
    console.log(data);
}, error => {
    console.log(error);
})

Problem List

Returns the list of problems at UVa in array format.

// Get list excersices
uhunt.list().then((data) => {
    console.log(data);
}, error => {
    console.log(error);
})

Submissions to Specific Problems

To view submissions to specific problems on a given submission date range. Note that the submissions are returned in no particular order.

uhunt.listSubmSpecificProblem([1342, 2702, 1700], new Date(2004, 12, 15), Date.now()).then((data) => {
    console.log(data);
/*
[{  sid: 3308738,
    uid: 1137,
    pid: 1342,
    ver: 50,
    lan: 3,
    run: 10096,
    mem: 0,
    rank: -1,
    sbt: 1108576139,
    name: 'Hubert Hwang',
    uname: 'antimatter' },
  ...
]
*/
}, error => {
    console.log("ERROR", error);
})

In progress

Author: @anlijudavid

Pull requests accepted

Licence MIT