open-index/open-npm huggingface dataset:
npm package: @softkit/async-storage
Latest version: 0.0.11

# This is a simple wrapper to setup a Cls Async Storage for NestJS


```
This is useful just for do not repeat yourself everytime, and shoudn't be used outside of Softkit ecosystem
```

## Installation

```bash
yarn add @softkit/async-storage
```

## Usage


```typescript

import { setupClsModule } from '@softkit/async-storage';

@Module({
  imports: [
    setupClsModule(),
  ]
})
export class MainAppAppModule {}


```
npm package: @softkit/bootstrap
Description: This library provides a set of general services, methods and utilities for bootstrapping the application. It's configuring default interceptors, swagger, http server, security, etc...
Latest version: 0.3.0

# Bootstrap Library

This library provides a set of general services, methods and utilities for bootstrapping the application.
It's configuring default interceptors, swagger, http server, security, etc...

---

Useful to do not repeat yourself everytime, and shouldn't be used outside Softkit ecosystem

---

## Installation

```bash
yarn add @softkit/bootstrap
```

## Usage in your main.ts

```typescript
import { PlatformAppModule } from './your-app.module';
import { bootstrapBaseWebApp } from '@softkit/bootstrap';

void bootstrapBaseWebApp(PlatformAppModule);
```

---

## Usage in tests (e2e)

```typescript
import { bootstrapBaseWebApp } from '@softkit/bootstrap';

describe('auth e2e test', () => {
  let app: NestFastifyApplication;

  beforeAll(async () => {
    const moduleFixture: TestingModule = await Test.createTestingModule({
      imports: [YourAppModule],
    }).compile();
    app = await bootstrapBaseWebApp(moduleFixture, PlatformAppModule);
  });
});
```
## Usage cookie

1. add the /// <reference types="@fastify/cookie" /> line in the global.d.ts file
2. update the tsconfig.app.json. Add the "../../global.d.ts" in the include array
3. add the cookie secret in the config file.
```json
{
  "include": [
    "../../global.d.ts"
  ]
}
```
npm package: @softkit/crypto
Description: This library provides a set of general services and utilities for cryptography and pseudo random data generation.  It just wrappers to do not repeat yourself everytime, keep libs up to date.
Latest version: 0.0.9

# Crypto Library

This library provides a set of general services and utilities for cryptography and pseudo random data generation. 
It just wrappers to do not repeat yourself everytime, keep libs up to date. 

This library do use argon2 and nanoid under the hood.

Useful for general purpose applications, and it doesn't make too much sense to use it outside Softkit ecosystem

## Installation

```bash
yarn add @softkit/crypto
```