Node.js console app to bulk calculate inflation-adjusted values, with data from the Bureau of Labor Statistics.
- Rename 'sample-config.js' to 'config.js' or obtain the decryption key for the Makefile.
- 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.
- Paste your new API key into the
blsAPIKey
property in 'config.js'. - Populate 'input.json' with the dates and values you wish to find the current inflation-adjusted values.
$> 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
.
Using Mocha and Expect to test the BLS API.
$> npm test