# cron-task-runner

> A task runner that spawns processes can be configured using crontab notation

Latest version **1.0.1** (published 2017-10-29) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cron-task-runner
pnpm add cron-task-runner
yarn add cron-task-runner
bun add cron-task-runner
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-29 |
| First published | 2017-10-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ~8.7.0 |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Osama Hassanein |
| Maintainers | player1os |
| Keywords | cron, task, runner |

## Links

- npm: https://www.npmjs.com/package/cron-task-runner
- Repository: https://github.com/Player1os/node-js-cron-task-runner
- Homepage: https://github.com/Player1os/node-js-cron-task-runner#readme
- Issues: https://github.com/Player1os/node-js-cron-task-runner/issues
- npm.io page: https://npm.io/package/cron-task-runner

## Dependencies (9)

- [joi](https://npm.io/package/joi.md) ^10.6.0
- [cron](https://npm.io/package/cron.md) ^1.2.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [fs-extra](https://npm.io/package/fs-extra.md) ^3.0.1
- [mailgun-js](https://npm.io/package/mailgun-js.md) ^0.11.2
- [@player1os/config](https://npm.io/package/@player1os/config.md) ^1.1.12
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.4.15
- [spawn-process-promise](https://npm.io/package/spawn-process-promise.md) ^1.0.6
- [@player1os/data-type-utility](https://npm.io/package/@player1os/data-type-utility.md) ^1.0.10

## Recent versions

- 1.0.1 (latest) — 2017-10-29

## README

# Cron Task Runner

This project is a simple wrapper around the `cron` npm package that enables the configuration of cron tasks on a non-admin windows environment.

## Features

- Verbose logging the output of the executable.
- Sending a mail using the `mailgun-js` package in case an error occurs.

## Setup

1. Clone the repository into any location on you machine.
2. Create a shortcut from the main node executable (name it `node.lnk`).
3. Configure the shortcut to use the current directory as the `cwd`.
4. Create a shortcut for `start.vbs` in the windows `Startup` directory.
5. Configure the mailgun settings in a copy of the `.env.default` file named `.env`.
6. Configure the tasks to be executed in a copy of the `config.json.default` file named `config.json`.
7. Execute the script `npm run deploy` to build the project.
8. Execute the script `npm start` to run the task runner.

## Maintenace

Regretfully the project does not currently support any way of detection for existing instaces of the task runner. The only method of killing an existing task runner process is to end it in the Task Manager.

---
_Source: https://npm.io/package/cron-task-runner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
