# nestjs-rmq-test

> NestJS RabbitMQ Module

Latest version **1.0.11** (published 2019-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install nestjs-rmq-test
pnpm add nestjs-rmq-test
yarn add nestjs-rmq-test
bun add nestjs-rmq-test
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2019-10-30 |
| First published | 2019-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 25 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 321 |
| Author | Anton Larichev |
| Maintainers | automamanpm |
| Keywords | amqp, rabbitmq, typescript, nodejs, nestjs |

## Links

- npm: https://www.npmjs.com/package/nestjs-rmq-test
- Repository: https://github.com/AlariCode/nestjs-rmq
- Issues: https://github.com/AlariCode/nestjs-rmq/issues
- npm.io page: https://npm.io/package/nestjs-rmq-test

## Dependencies (4)

- [amqplib](https://npm.io/package/amqplib.md) ^0.5.5
- [signale](https://npm.io/package/signale.md) ^1.4.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [amqp-connection-manager](https://npm.io/package/amqp-connection-manager.md) ^3.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2019-10-30
- 1.0.10 — 2019-10-30
- 1.0.9 — 2019-10-30
- 1.0.8 — 2019-10-30
- 1.0.7 — 2019-10-30
- 1.0.6 — 2019-10-30
- 1.0.5 — 2019-10-30
- 1.0.4 — 2019-10-30
- 1.0.3 — 2019-10-30
- 1.0.2 — 2019-10-30
- 1.0.1 — 2019-10-30
- 1.0.0 — 2019-10-30

## README

# NestJS cron Module

NestJS cron package allows you easily setup cron for your controllers or services.

```bash
npm i nestjs-cron
```

Then register module in your root app.module

```javascript
import { CronModule } from 'nestjs-cron';

@Module({
	imports: [
		// ...
		CronModule.forRoot(),
	],
})
export class AppModule {}
```

To use cron, decorate your class with `@Scheduled()` and method with `@Cron()`

```javascript
import { Cron, Scheduled } from 'nestjs-cron';

@Scheduled()
export class MyClass {
	@Cron('* * * * * *')
	async myMethod() {
		//...
	}
}
```

`'* * * * * *'` - is a standart cron notation. In this example it will be triggered every second.
Additionaly you can use options:

```javascript
@Cron('* * * * * *', {
	launchOnInit: true,
	sync: true,
})
```

-   launchOnInit - Launch job one time right after start
-   sync - Wait for method to finish before launching next tick if your function takes more time then cron.

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