fpds-atom
v1.0.2
Published
JavaScript library for nodejs and browser to search though FPDS.GOV ATOM Feed
Downloads
16
Maintainers
Readme
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