Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days ago
JSON representation
[WIP] ⏳ A Versatile library for Cron Management & Automation
- Host: GitHub
- URL: https://github.com/shahradelahi/node-cronstack
- Owner: shahradelahi
- License: mit
- Created: 2023-11-28T09:34:05.000Z (about 1 year ago)
- Default Branch: canary
- Last Pushed: 2025-01-13T16:09:18.000Z (28 days ago)
- Last Synced: 2025-01-13T17:23:30.406Z (28 days ago)
- Topics: cli, cronjob, microservice, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/cronstack
- Size: 274 KB
- Stars: 118
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```## CLI Options
```text
Usage: cronstack [options] [command]Manage your services with CronStack.
Options:
-v, --version display the version number
-h, --help display help for commandCommands:
add [options] Add a new service
build [options] Build all services
dev [options] [services...] Start services in development mode
init [options] Initialize your project.
start [options] [services...] Start all services
help [command] display help for command
```### 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
```## License
[MIT](LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi)