social-security-calculator 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -11
- package/lib/index.d.ts +15 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
# SocialSecurityCalculator
|
|
2
|
-
|
|
2
|
+
TypeScript to calculate estimated Social Security Benefits
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
This
|
|
6
|
-
from Social Security given your annual earnings
|
|
7
|
-
not extrapolate potential future earnings. It only uses the income
|
|
8
|
-
information provided into the EarningsRecord dictionary below.
|
|
9
|
-
|
|
5
|
+
This module will calculate your expected retirement benefits
|
|
6
|
+
from Social Security given your annual earnings
|
|
10
7
|
Inputs:
|
|
11
8
|
1) EarningsRecord -
|
|
12
9
|
Dictionary mapping a year to the amount of Social
|
|
@@ -16,9 +13,5 @@ Python script to calculate estimated Social Security Benefits
|
|
|
16
13
|
Data pulled directly from the Social Security website for the
|
|
17
14
|
national average wage data
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
Written by Ryan Antkowiak (antkowiak@gmail.com) 2017-07-15
|
|
21
|
-
Copyright (c) 2017 All Rights Reserved
|
|
22
|
-
|
|
23
|
-
Updated by Kevin Fowlks (fowlk1kd@gmail.com) 2019-09-03
|
|
16
|
+
Adapted from python originally written by Ryan Antkowiak (antkowiak@gmail.com) and updated by Kevin Fowlks (fowlk1kd@gmail.com)
|
|
24
17
|
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export = calc;
|
|
2
|
+
declare function calc(earnings: any): {
|
|
3
|
+
Top35YearsEarnings: any;
|
|
4
|
+
AIME: string;
|
|
5
|
+
FirstBendPoint: string;
|
|
6
|
+
SecondBendPoint: string;
|
|
7
|
+
NormalMonthlyBenefit: string;
|
|
8
|
+
NormalAnnualBenefit: string;
|
|
9
|
+
ReducedMonthlyBenefit: string;
|
|
10
|
+
ReducedAnnualBenefit: string;
|
|
11
|
+
};
|
|
12
|
+
declare namespace calc {
|
|
13
|
+
export { __esModule };
|
|
14
|
+
}
|
|
15
|
+
declare const __esModule: boolean;
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "social-security-calculator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Calculate estimated Social Security Benefits",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
12
|
"build": "tsc"
|