0.0.1 • Published 8 years ago
@galkin/zetro v0.0.1
Zetro test task
Description
The NodeJS CLI will listen to a change event of the directory mentioned by user input.
When a user places a file in the source directory, the program will identify it and append the filename to a log file, as follow: 1. *.pdf files should be written to log as-is. 2. Other types of files should be logged with the current time added to the filename. For example a file originally called "root.png" will be renamed to "root_1235.png"
Please add unit tests / integration test / automation tests as much as you can.
Install
npm install -g @galkin/zetro
Running
$ zetro
Options:
--file, -f Log file [string] [default: "./zerto.log"]
--verbose, -v Verbose level [count]
--recursive, -r Recursive [boolean]
--path, -p Directory path [string] [default: "."]
--help, -h Show help [boolean]
Testing Approach
Download repository
Run npm test
. It will run:
- linting for code and tests
- functional tests with mocha
0.0.1
8 years ago