Write a Node script that transforms data.json
into data-transformed.json
. Have a look at example-output.json
to show how the data should be transformed.
- Solution should be implemetned in TypeScript.
- Read JSON
data.json
async from current directory, convert data async, writedata-transformed.json
async to current directory. - Solution should be run from the command line using
npm run
. - Solution should be non-blocking.
- Solution should write output file directly to project directory unless otherwise specified.
Your work will be evaluated primarily on:
- Consistency of coding style.
- Correct use of promises, including proper error handling.
- Correct use of TypeScript, including interface/object definitions.
- Absence of "callback hell".
- Correct and complete unit test coverage.
- General quality of code and technical communication.
- Fork this project on github.
- Update this README.md file with instructions on how to build/test/run your script.
- When you're finished, send us the URL of your public repository.