open-index/open-npm huggingface dataset:
npm package: @nessiesnippets/oblique-strategies
Description: ![CI status](https://github.com/nessieSnippets/oblique-strategies/actions/workflows/ci.yaml/badge.svg)
Latest version: 1.2.0

# Oblique Strategies

![CI status](https://github.com/nessieSnippets/oblique-strategies/actions/workflows/ci.yaml/badge.svg)

[Oblique strategies](https://en.wikipedia.org/wiki/Oblique_Strategies) aims to promote creativity by creating creative blocks, "to enourage lateral thinking". The cards were created by Brian Eno and Peter Schmidt.

This package returns an oblique strategies card, using the list made by [SansUmbrella](https://github.com/sansumbrella/Processing-ObliqueStrategies), either within a project or on commandline.

## Install and run

Command line

```
>> npm install -g @nessiesnippets/oblique-strategies

>> oblique-strategies #prints random card

>> oblique-strategies --help #prints help message
```

## References & Notes

- [How to make a small npm package](https://www.freecodecamp.org/news/how-to-make-a-beautiful-tiny-npm-package-and-publish-it-2881d4307f78/)

- [Cards list](https://github.com/sansumbrella/Processing-ObliqueStrategies/blob/master/src/com/sansumbrella/StrategyList.java)

- Cautionary Tales - [Bowie, Jazz and the Unplayable Piano](http://timharford.com/articles/cautionarytales/)
npm package: @nest-auth/redis
Description: Redis wrapper for NestJs
Author: Davide Gheri
Latest version: 0.3.0


# Nest auth Redis

### nestjs module to ease connection with a single Redis instance.

It creates a `ioredis.Redis` instance and make it injectable using Nestjs DI  

## Installation

```bash
$ npm install --save @nest-auth/redis ioredis
$ npm install --save-dev @types/ioredis
```
Or
```bash
$ yarn add @nest-auth/redis ioredis
$ yarn add -D @types/ioredis
```

#### Import it in a module

```typescript
import { Module } from '@nestjs/common';
import { RedisModule } from '@nest-auth/redis';

@Module({
  imports: [
    //...
    RedisModule.forRoot({
      ioredis: { // ioRedis options
        host: 'localhost',
        port: 6379,
        username: 'redisUser',
        password: 'supersecret',
        //...
      },
      // Optionally, you can pass a redis connection uri
      url: 'redis://redisUser:supersecret@localhost:6379',
    }),
    
    // Or with Async configuration
    RedisModule.forRootAsync({
      import: [ConfigModule],
      inject: [ConfigService],
      useFactory: config => config.get('redis'),
    }),
    //...
  ],
})
export class AppModule {}
```

### Usage

get the redis connection using the `@InjectRedis()` decorator

```typescript
import { Injectable } from '@nestjs/common';
import { InjectRedis } from '@nest-auth/redis';
import ioredis from 'ioredis';

@Injectable()
export class SomeService {
  constructor(
    @InjectRedis()
    private readonly redis: ioredis.Redis,
  ) {}
}
```

If you need to get the Redis connection outside the Nest scope (say in `main.ts` to use it in some Adapter only middleware), get it using `getRedisToken()`:

```typescript
import { getRedisToken } from '@nest-auth/redis';
//...
const app = await NestFactory.create(AppModule);

const redis = app.get(getRedisToken());

//...
```
npm package: @nest-boot/eslint-plugin
Description: Nest Boot 定制规则
Latest version: 7.0.5

# eslint-plugin-nest-boot

Nest Boot 定制规则

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-nest-boot`:

```sh
npm install eslint-plugin-nest-boot --save-dev
```

## Usage

Add `nest-boot` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": ["nest-boot"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "nest-boot/rule-name": 2
  }
}
```

## Rules

<!-- begin auto-generated rules list -->

TODO: Run eslint-doc-generator to generate the rules list.

<!-- end auto-generated rules list -->
npm package: @nest-bots/framework-discord
Description: <p align="center">   <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a><img src="https://cdn.pixabay.com/photo/2016/12/21/17/11/signe-1923369_960_720.png" alt="plus" width="100"><
Author: Pascal K.
Latest version: 1.0.0

# NestJS Bot Platform (Discord)

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a><img src="https://cdn.pixabay.com/photo/2016/12/21/17/11/signe-1923369_960_720.png" alt="plus" width="100"><img src="https://discordapp.com/assets/9babbea9acbfec5302d832bae6c3c184.svg" width ="320" alt="Discord Icon"/>
</p>

<h1 align="center">A <a href="http://discord.js.org" target="blank">Discord.js</a> module for the <a href="https://github.com/nest-bots/bot-platform" target="blank">Nest-Bot-Framework</a>!
  </h1>
  <p align="center">
  <a href="http://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg"/></a>
</p>
<p align="center">
</p>

### Install

> NPM

```shell script
npm install --save @nest-bots/bot-platform @nest-bots/framework-discord
```

> Yarn

```shell script
yarn add @nest-bots/bot-platform @nest-bots/framework-discord
```

### Usage

The framework-specific Bot Instance for discord is `DiscordBot` and can be imported from the `@nest-bots/framework-discord` package.
npm package: @nest-cloud/nest-cloud-starter-config
Description: Nestjs Cloud
Author: @ztzl/zhibiaosong
Latest version: 1.2.3

```js
import { NestConfigModule } from "@nest-cloud/nest-cloud-starter-config";

@Module({
  imports: [NestConfigModule.forRoot({ isGlobal: true })],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

@Injectable()
export class AppService {
  private logger = new Logger(AppService.name);

  constructor(private configService: ConfigService) {}
}
```
npm package: @nest-cloud/nest-cloud-starter-nacos-balancer
Description: Nestjs Cloud
Author: @ztzl/zhibiaosong
Latest version: 1.0.1

```js
import { NacosBalancerModule, LoadBalanced } from "@nest-cloud/nest-cloud-starter-nacos-balancer";

@Module({
  imports: [
    NestConfigModule.forRoot({ isGlobal: true }),
    NacosDiscoveryModule.register(),
    NacosBalancerModule.register(),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

@Injectable()
export class AppService {
  private readonly logger = new Logger(AppService.name);

  constructor(@LoadBalanced() private httpService: HttpService) {}
  }
}
```
npm package: @nest-cloud/nest-cloud-starter-nacos-config
Description: Nestjs Cloud
Author: @ztzl/zhibiaosong
Latest version: 1.0.1

```js
import {
  NacosConfigModule,
  NacosConfigService,
} from "@nest-cloud/nest-cloud-starter-nacos-config";

@Module({
  imports: [
    NestConfigModule.forRoot({
      isGlobal: true,
      useFactory: async (nacosConfigService: NacosConfigService) => {
        return nacosConfigService.getConfig();
      },
      inject: [NacosConfigService],
    }),
    NacosConfigModule.register(),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

@Injectable()
export class AppService {
  private logger = new Logger(AppService.name);

  constructor(private readonly configService: ConfigService) {}
}
```
npm package: @nest-cloud/nest-cloud-starter-nacos-discovery
Description: Nestjs Cloud
Author: @ztzl/zhibiaosong
Latest version: 1.0.2

```js
import { NacosDiscoveryModule } from "@nest-cloud/nest-cloud-starter-nacos-discovery";

@Module({
  imports: [
    NestConfigModule.forRoot({ isGlobal: true }),
    NacosDiscoveryModule.register(),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
```