Gathering detailed insights and metrics for tra-ma
Gathering detailed insights and metrics for tra-ma
Gathering detailed insights and metrics for tra-ma
Gathering detailed insights and metrics for tra-ma
npm install tra-ma
Typescript
Module System
Node Version
NPM Version
61.6
Supply Chain
88.6
Quality
88.1
Maintenance
100
Vulnerability
99.6
License
TypeScript (99.37%)
JavaScript (0.63%)
Total Downloads
958
Last Day
2
Last Week
5
Last Month
40
Last Year
958
137 Commits
1 Watching
6 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
2.1.0
Package Id
tra-ma@2.1.0
Unpacked Size
65.81 kB
Size
12.71 kB
File Count
49
NPM Version
10.2.3
Node Version
20.10.0
Publised On
12 Nov 2024
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
-77.3%
5
Compared to previous week
Last month
-81.9%
40
Compared to previous month
Last year
0%
958
Compared to previous year
2
3
This module is used to get reports by time and generate a report depending on given constraints. The module could also be used to handle and categorize transactions.
Write npm i tra-ma
in console. Verify that the version is 1.0.5 in your package.json.
Importing the module:
1import { 2 Transaction, 3 TransactionProcessor, 4 ReportGenerator, 5 Report, 6 TransactionType, 7 ExpenseCategory, 8 IncomeCategory 9 } from "tra-ma"
Example:
1const transaction = new Transaction( 2 new Date('2024-09-23'), 3 100, 4 TransactionType.EXPENSE, 5 ExpenseCategory.FOOD 6) 7 8const transactions = [transaction] 9 10const processor = new TransactionProcessor(transactions) 11 12const generator = new ReportGenerator(processor) 13 14const report = generator.generateReport() 15 16console.log(report.toString()) // => Logs the report as a string
For further instructions of how to use the separate classes and enumerations in the module, read the separate README.md files for each class.
Link to README for each class and enums:
You can find a class diagram in the projects Wiki.
My reflections of the code quality: Link to reflections
Watch Open Issues to see future development of the module.
Link to the module on npm: https://www.npmjs.com/package/tra-ma
The module is built using TypeScript.
The module is tested using the npm library Jest. Link to test report
If you want to run the tests:
npm run build
in the terminal.npm run test:detail
in the terminalNo vulnerabilities found.
No security vulnerabilities found.