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