$ npm install
$ npm run build
# unit tests
$ npm run test
# test coverage
$ npm run test:cov
$ node ./dist/index.js < <input_file>
Example:
$ node ./dist/index.js < ./resources/example_input
or
$ node ./dist/index.js
Input all data(past or type) and press CMD/CTRL+D
$ npm install -g ts-node
$ ts-node ./src/index.ts < <input_file>
Example:
$ ts-node ./src/index.ts < ./resources/example_input
or
$ ts-node ./src/index.ts
Input all data(past or type) and press CMD/CTRL+D