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: 3 months 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 (12 months ago)
- Default Branch: canary
- Last Pushed: 2024-07-02T17:20:12.000Z (4 months ago)
- Last Synced: 2024-07-05T00:15:32.692Z (4 months ago)
- Topics: cli, cronjob, microservice, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/cronstack
- Size: 134 KB
- Stars: 60
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
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
```### 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)