This repository contains your starter code for the File Processing Toolkit assignment.
- Clone this repository to your local machine
- Navigate to the project directory
- Install dependencies:
npm install
You will build two main scripts:
- textAnalyzer.js - Analyzes text files (word count, longest word, line count)
- numberProcessor.js - Processes number files (sum, average, highest, lowest)
Your repository includes sample data files to work with:
data/sample-text.txt- Text content for analysisdata/sample-numbers.txt- Numbers for processingdata/quotes.txt- Programming quotes for text analysis
Write Jest tests for your functions:
npm testsrc/
├── textAnalyzer.js
├── numberProcessor.js
└── fileToolkit.js
tests/
├── textAnalyzer.test.js
└── numberProcessor.test.js
data/
├── sample-text.txt
├── sample-numbers.txt
└── quotes.txt