{"id":30281837,"url":"https://github.com/pmunin/cashflow-projections.js","last_synced_at":"2025-08-16T16:55:26.222Z","repository":{"id":57194724,"uuid":"387131290","full_name":"pmunin/cashflow-projections.js","owner":"pmunin","description":"Javascript library helping to generate cashflow projections","archived":false,"fork":false,"pushed_at":"2021-07-19T05:07:38.000Z","size":968,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T02:55:00.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmunin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-18T08:52:08.000Z","updated_at":"2021-07-19T05:06:39.000Z","dependencies_parsed_at":"2022-09-16T01:35:47.410Z","dependency_job_id":null,"html_url":"https://github.com/pmunin/cashflow-projections.js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pmunin/cashflow-projections.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmunin%2Fcashflow-projections.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmunin%2Fcashflow-projections.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmunin%2Fcashflow-projections.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmunin%2Fcashflow-projections.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmunin","download_url":"https://codeload.github.com/pmunin/cashflow-projections.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmunin%2Fcashflow-projections.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683714,"owners_count":24458742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-16T16:55:24.778Z","updated_at":"2025-08-16T16:55:26.196Z","avatar_url":"https://github.com/pmunin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Cashflow projections\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][build-image]][build-url]\n[![Docs][docs-image]][docs-url]\n\nThis javascript module lets you easily generate projections\n\nFor example:\n\n```js\ngetCashflowProjections({ //full set of args: https://pmunin.github.io/cashflow-projections.js/modules.html#CashflowArgs\n  startDate:new Date('01/01/2020'),\n  periods: 24,\n  accruals:{\n    salary:()=\u003e120000/12,\n    tax:cf=\u003e({amount:-cf.salary*0.25, description:'tax'}),\n    bonus:cf=\u003ecf.date.getMonth()==11?5000:undefined\n  },\n  totals:{\n    salary: cf=\u003ecf.accruals.salary.amount + (cf.previous[0]?.totals.salary??0)\n  }\n})\n```\n\nGenerates array of:\n\n```js\n[\n  {date:new Date('01/01/2021'), period:1, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:10000}}},\n  {date:new Date('02/01/2021'), period:2, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:20000}}},\n  {date:new Date('03/01/2021'), period:3, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:30000}}},\n  {date:new Date('04/01/2021'), period:4, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:40000}}},\n  {date:new Date('05/01/2021'), period:5, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:50000}}},\n  {date:new Date('06/01/2021'), period:6, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:60000}}},\n  {date:new Date('07/01/2021'), period:7, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:70000}}},\n  {date:new Date('08/01/2021'), period:8, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:80000}}},\n  {date:new Date('09/01/2021'), period:9, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:90000}}},\n  {date:new Date('10/01/2021'), period:10, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:100000}}},\n  {date:new Date('11/01/2021'), period:11, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}}, totals:{salary:{amount:11000}}},\n  {date:new Date('12/01/2021'), period:12, accruals:{salary:{amount:10000}, tax:{amount:2500, description:'tax'}, bonus:{amount:5000}}, totals:{salary:{amount:120000}}},\n]\n\n//accruals and totals are actually arrays, but it also have properties defined in the accrual configuration specified in properties keys\n```\n\n[Read more docs here][docs-url]\n\n\n[npm-image]: https://img.shields.io/npm/v/cashflow-projections.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/cashflow-projections\n[build-image]:https://github.com/pmunin/cashflow-projections.js/actions/workflows/main.yml/badge.svg\n[build-url]:https://github.com/pmunin/cashflow-projections.js/actions/workflows/main.yml\n[downloads-image]: https://img.shields.io/npm/dm/cashflow-projections.svg?style=flat-square\n[downloads-url]: https://www.npmjs.com/package/cashflow-projections\n[docs-url]:https://pmunin.github.io/cashflow-projections.js/\n[docs-image]:https://img.shields.io/badge/docs-typedoc-blue?style=flat\u0026logo=Read%20the%20Docs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmunin%2Fcashflow-projections.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmunin%2Fcashflow-projections.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmunin%2Fcashflow-projections.js/lists"}