Skip to content

shoemaker/calc-inflation

Repository files navigation

calc-inflation

Node.js console app to bulk calculate inflation-adjusted values, with data from the Bureau of Labor Statistics.

Configuration

  1. Rename 'sample-config.js' to 'config.js' or obtain the decryption key for the Makefile.
  2. Register for a BLS API Key. API requests to the Bureau of Labor Statistics require an API key. Create an API account with the BLS to obtain an API key.
  3. Paste your new API key into the blsAPIKey property in 'config.js'.
  4. Populate 'input.json' with the dates and values you wish to find the current inflation-adjusted values.

Use It

$> npm install
$> npm start

The console app will request CPI data from the BLS, calculate the inflation-adjusted values found in 'input.json', then write a CSV file: output.csv.

Tests

Using Mocha and Expect to test the BLS API.

$> npm test

About

Bulk calculation of inflation-adjusted values from BLS data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •