CLI tool to parse CRON request
-
Please check the node and npm version in package.json to use the compatible version
-
Install nodejs (http://nodejs.org/en/download/) use
node -v
to check version and verfiy node installation -
Clone or download the project from github. git@github.com:rajanmishra/cronparser.git
-
Go to the root of Project
-
Run
npm install
thennpm install . -g
to install cronparser CLI globally -
Alternatively you can also use
npm start "*/15 0 1,15 * 1-5 /usr/bin/find"
from the root -
Run
cronparser --help
to see example command to get started, if you installed CLI globally other wise use above command -
Run
cronparser "*/15 0 1,15 * 1-5 /usr/bin/find"
to parse the cron request
You should see this response
(index) | Values |
---|---|
minute | '0 15 30 45' |
hour | '0' |
day of month | '1 15' |
month | '1 2 3 4 5 6 7 8 9 10 11 12' |
day of week | '1 2 3 4 5' |
command | '/usr/bin/find' |
- Run
npm test
to run the test cases, we're using jest https://jestjs.io/
Application Server - Nodejs
---Please drop an email at rajanmishra2010@hotmail.com for any issue-----