You need to have nodejs & npm installed.
Run following command to install dependencies: npm i
Run the cli (main.ts) with following command: npx ts-node ./main.ts
Run tests with: npm test
- Use Javascript or Typescript when solving the problem.
- Use the provided GitHub repository to submit your solution.
- Create a Pull Request when your solution is ready and send a link to it via E-mail.
- You have 3 days to submit your solution.
The task is to write a CLI program which finds all anagrams of the user's input word in a dictionary.
- The dictionary is a plain text file (wordlist.txt) which contains one word per line.
- The program should handle anagram-requests as fast as possible preferably in constant time.
- The program should ask for the next user input after printing the previous result.
- Write a "production ready" code which you'd proudly push to master, preferably with tests.