A coding demonstration project to count the frequencies of words from a given text file. Ignores padding, casing and treats each line as a single word token. The output is saved into a .results in an alphabetical order.
The project utilizing Typescript, Jest and Node.js
Built with the following:
- Node.js v18.13.0
- NPM v8.19.3
- TypeScript 5.0.2
- Visual Studio Code
git clone https://github.com/cypher437/typescriptWordCount.git
npm install
From the root of the project run
npm run demo
Invoke index.ts with either Node or Deno passing in a path a text file as a parameter
Running from Node:
npx ts-node src\index.ts tests\Fixtures\test01.txt
the parsed text is saved into .results and displayed in the console.
tests\Fixtures\test02.txt.result
npm run test


