# herowio-redisk-nestjs

> NestJS module for Redisk.

Latest version **3.0.0** (published 2022-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install herowio-redisk-nestjs
pnpm add herowio-redisk-nestjs
yarn add herowio-redisk-nestjs
bun add herowio-redisk-nestjs
```

## 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 | 3.0.0 |
| Published | 2022-01-28 |
| First published | 2022-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ArkerLabs |
| Maintainers | o-dlr-o |
| Keywords | nestjs, redisk, redis, orm |

## Links

- npm: https://www.npmjs.com/package/herowio-redisk-nestjs
- Repository: https://github.com/herowio/redisk-nestjs
- Homepage: https://github.com/ArkerLabs/redisk-nestjs#readme
- Issues: https://github.com/ArkerLabs/redisk-nestjs/issues
- npm.io page: https://npm.io/package/herowio-redisk-nestjs

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^4.5.5

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2022-01-28
- 1.0.5 — 2022-01-25

## README

Redisk for Nestjs
=====
[![npm version](https://badge.fury.io/js/redisk-nestjs.svg)](https://badge.fury.io/js/redisk-nestjs)

Module for using [Redisk](https://github.com/ArkerLabs/redisk) in NestJS.


## Getting started
```bash
npm install redisk-nestjs redisk --save
```


### Usage

```ts
import { Module } from '@nestjs/common';
import { RediskModule } from 'redisk-nestjs';

@Module({
  imports: [
    RediskModule.forRoot({
      host: '127.0.0.1',
      port:6379, 
      db:0
    }),
  ],
})
export class AppModule {}
```


### Example

```ts
import { Controller, Get } from '@nestjs/common';
import { Redisk } from 'redisk';

@Controller('cats')
export class CatsController {
  constructor(private readonly redisk: Redisk) {}

  @Get()
  async findAll(): Promise<Cat[]> {
    return this.redisk.list<Cat>(Cat);
  }
}
```

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