inflation-cpi

0.0.1 • Public • Published

inflation-cpi

Convert dollar amounts between years using BLS CPI figures

Sources

Installation

npm install inflation-cpi

Usage

var inflation = require("inflation-cpi");

// examples from http://www.usinflationcalculator.com/frequently-asked-questions-faqs/
var twenty_dollars_in_1980 = inflation(
	1980, // target year
	2011, // original year
	20     // amount
);
// 7.32

var movie_ticket_inflation = inflation(
	2011, // target year
	1970, // original year
	0.5     // amount
);
// 2.90

/inflation-cpi/

    Package Sidebar

    Install

    npm i inflation-cpi

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • wilson428