# @dillonchr/inflation

> inflation calculator parser

Latest version **1.0.0** (published 2018-06-20) · GPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dillonchr/inflation
pnpm add @dillonchr/inflation
yarn add @dillonchr/inflation
bun add @dillonchr/inflation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-20 |
| First published | 2018-06-20 |
| Weekly downloads | 0 |
| License | GPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @dillonchr |
| Maintainers | nightwind |

## Links

- npm: https://www.npmjs.com/package/@dillonchr/inflation
- Repository: https://github.com/dillonchr/inflation
- Homepage: https://github.com/dillonchr/inflation#readme
- Issues: https://github.com/dillonchr/inflation/issues
- npm.io page: https://npm.io/package/@dillonchr/inflation

## Dependencies (1)

- [@dillonchr/domget](https://npm.io/package/@dillonchr/domget.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2018-06-20

## README

![](inflation.gif)
# Inflation
This calculates the value of a certain amount of money against a certain year. I'm coming up short on how to generically describe what this module does so I'll just spit it out.

This module tells you how much a certain dollar amount in a certain year is worth today. It uses the US Department of Labor's calculator to get the number. There's actually a lot more accuracy that could be added to this but I'm sticking with just years.

## Install
`npm i @dillonchr/inflation`

## Usage
There are 3 arguments required.

1. `year` - four digit year on or after 1913
1. `amount` - number that will be turned into a float if it isn't already
1. `callback` - with standard (err, result) signature

If the year is less than 1913 you'll get a smart alec response. If the year is the same as this year it'll just respond with your raw amount input. Smart alec response if you ask for future year too. Sorry. Open to PRs :beers:

---
_Source: https://npm.io/package/@dillonchr/inflation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
