Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shahradelahi/node-cronstack

[WIP] ⏳ A Versatile library for Cron Management & Automation
https://github.com/shahradelahi/node-cronstack

cli cronjob microservice nodejs

Last synced: 3 months ago
JSON representation

[WIP] ⏳ A Versatile library for Cron Management & Automation

Awesome Lists containing this project

README

        

# CronStack

_cronstack_ is a versatile library for managing tasks, scheduling functions. It allows you to automate the execution of functions through triggers or scheduled intervals. The package includes powerful CLI tools for managing your tasks, transpiling code, and bundling resources.

## Installation

```bash
npm install cronstack
```

### Directory Structure

For the service to be recognized, ensure your service file follows the pattern:

1. Directly under the `services` directory.

```text
+.service.ts
```

2. Directory with name of the service under `services` directory.

```text
/+service.ts
```

Notice that you can put the `services` directory in `src` as well.

###### Example

```text
project-root
|-- services
| |-- +.service.ts
| |--
| |-- +service.ts
```

## Initialize Project

###### Command

```bash
npx cronstack init
```

## Creating a new Service

###### Command

```bash
cronstack add --interval
```

## License

[MIT](LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi)