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

req-uscis-status

v1.0.3

Published

Module to return USCIS case status from https://egov.uscis.gov/casestatus/landing.do

Downloads

10

Readme

req-uscis-status

NPM version Build Status via Travis CI Coverage Status

Module to get US Citizenship and Immigration Services (USCIS) case status from the USCIS Case Status Online web page given a USCIS Receipt Number.

This is simply a screen scrape from the USCIS case status website after posting a USCIS Receipt Number. This module and the support of it is not in any way affiliated with USCIS. Any changes that they make to the case status web site could and likely would impact this module.

There is just one exposed function with this module : getStatus(receiptNumber, callback). The callback is called with an error, if any, and the result. The result is one object :

  var statusObj = {
    errHtml: undefined,  // error, if any, on the uscis page after posting receipt number
    statusShortHtml: undefined,  
    statusShortText: undefined, 
    statusLongHtml: undefined, 
    statusLongText: undefined
  }; 

Each of the 5 properties in the status object returned are 'cleaned' of return lines, new line breaks, tabs and duplicate spaces.

Install with npm install req-uscis-status.

Examples

var rus = require('req-uscis-status');

rus.getStatus('MSC1591345031', 
  function(err, statusObject) { 
    console.log(statusObject);

    // { 
    //  errHtml: undefined,
    //  statusShortHtml: '<strong>Your Current Status:</strong> Card Was Delivered To Me By The Post Office <span class="appointment-sec-show" tabindex="-1" title="View Case Status Full Description">+</span>',
    //  statusShortText: 'Your Current Status: Card Was Delivered To Me By The Post Office',
    //  statusLongHtml: '<h1>Card Was Delivered To Me By The Post Office</h1> <p>On November 12, 2015, the Post Office delivered your new card for Receipt Number MSC1591345031, to the address that you gave us. The tracking number assigned is 9205592338400179142710. You can use your tracking number at <a href="https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9205592338400179142710" target="_blank">www.USPS.com</a> in the Quick Tools Tracking section. If you move, go to <a href="https://egov.uscis.gov/coa/displayCOAForm.do" target="_blank">www.uscis.gov/addresschange</a> to give us your new mailing address.</p>',
    //  statusLongText: 'Card Was Delivered To Me By The Post Office On November 12, 2015, the Post Office delivered your new card for Receipt Number MSC1591345031, to the address that you gave us. The tracking number assigned is 9205592338400179142710. You can use your tracking number at www.USPS.com in the Quick Tools Tracking section. If you move, go to www.uscis.gov/addresschange to give us your new mailing address.' 
    // }
  }
);