# bonus-calculation

> Webhosting bonus calculation

Latest version **2.0.1** (published 2016-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install bonus-calculation
pnpm add bonus-calculation
yarn add bonus-calculation
bun add bonus-calculation
```

## 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 | 2.0.1 |
| Published | 2016-10-08 |
| First published | 2016-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | roobina90 |
| Maintainers | webhosting |
| Keywords | bonus, team, money, bank, company, engagement |

## Links

- npm: https://www.npmjs.com/package/bonus-calculation
- npm.io page: https://npm.io/package/bonus-calculation

## Recent versions

- 2.0.1 (latest) — 2016-10-08
- 2.0.0 — 2016-10-08
- 1.0.3 — 2016-10-08
- 1.0.2 — 2016-10-05
- 1.0.1 — 2016-10-05
- 1.0.0 — 2016-10-05

## README

#Bonus calculation


##Module expects object with schema:
```

{  
    "type": "object",  
    "properties": {  
      "members": {  
        "type": "array",  
        "items": {  
          "type": "object",  
          "properties": {  
            "name": {  
              "type": "string"  
            },  
            "salary": {  
              "type": "integer"  
            },  
            "engagement": {  
              "type": "integer"  
            }  
          },  
          "required": [  
            "name",  
            "salary",  
            "engagement"  
          ]  
        }  
      },  
      "bonusPercent": {  
        "type": "integer"  
      }  
    },  
    "required": [  
      "members",  
      "bonusPercent"  
    ]  
  }  
```
##example object :
````
{  
    "members": [  
        {"name": "Artem", "salary": 5000, "engagement": 42},  
        {"name": "Mario", "salary": 2000, "engagement": 31},  
        {"name": "Luigi", "salary": 3000, "engagement": 27}  
    ],  
    "bonusPercent": 28  
}  
````
##example usage
````
node myApp.js ./data.json  
````
##myApp.js file content:
````
var bonusCalculator = require("./bonus-calculation.js");  
var data = require(process.argv[2]);  
console.log(bonusCalculator(data));  

````

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