gr2m / uscis-service-center-processing-times

Get processing time for one or all USCIS service centers
https://egov.uscis.gov/cris/processTimesDisplayInit.do
Apache License 2.0
4 stars 0 forks source link

uscis-service-center-processing-times

Get processing time for one or all USCIS service centers

Build Status Greenkeeper badge

ID Name Last update
990 VSC - Vermont Service Center March 19, 2018
991 CSC - California Service Center March 19, 2018
992 NSC - Nebraska Service Center March 19, 2018
993 TSC - Texas Service Center March 19, 2018
1031 YSC - Potomac Service Center March 19, 2018

Usage as CLI

Requires: latest Node LTS

Load all service centers

npx uscis-service-center-processing-times

Load single service center by passing center ID

npx uscis-service-center-processing-times 992

Usage with Node

Install with npm install uscis-service-center-processing-times

const getServiceCenterProcessingTimes = require('uscis-service-center-processing-times')

// get all
getServiceCenterProcessingTimes()
  .then(result => {
    // {
    //   "990": {
    //     "shortName": "VSC",
    //     "longName": "Vermont Service Center",
    //     "lastUpdated": "January 5, 2018",
    //     "processingTimes": {
    //       "I-102": {
    //         "Initial issuance or replacement of a Form I-94": "April 24, 2017"
    //       },
    //       ...
    //     }
    //   },
    //   ...
    // }
  })
  .catch(console.log)

// get one
getServiceCenterProcessingTimes({id: 990})
  .then(result => {
    // {
    //   "shortName": "VSC",
    //   "longName": "Vermont Service Center",
    //   "lastUpdated": "January 5, 2018",
    //   "processingTimes": {
    //     "I-102": {
    //       "Initial issuance or replacement of a Form I-94": "April 24, 2017"
    //     },
    //     ...
    //   }
    // }
  })
  .catch(console.log)

License

Apache 2.0