fpds-atom

1.0.2 • Public • Published

fpds-atom

JavaScript library for nodejs to search through FPDS.GOV ATOM Feed

npm install fpds-atom

Interfaces

var FPDS = require('fpds-atom');
 
FPDS.getAwardsByVendor('vendor', function(error, awards) {});
FPDS.getAwardsByContractID('contractID', function(error, awards) {});
FPDS.getAwards('param:value', function(error, awards) {});

Example Usage

'use strict';
var FPDS = require('../index').FPDS;
var contractID = 'DOLOPS15T00043';
 
FPDS.getAwardsByContractID(contractID, function(error, awards) {
  if(!error && awards.length > 0) {
    awards.forEach(function(award) {
      console.log('Contract ID:' + award.awardID.awardContractID.PIID);
      console.log('Vendor:' + award.vendor.vendorName);
      console.log('Mod:' + award.awardID.awardContractID.modNumber);
      console.log('Effective Date: ' + award.relevantContractDates.effectiveDate);
    });
  } else {
    console.log(error);
  }
});

Build

npm test

Package Sidebar

Install

npm i fpds-atom

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • faheemitian