open-index/open-npm huggingface dataset:
npm package: @radrat-nest/bootstrap
Description: ## Features
Latest version: 0.0.14

# @radrat-nest/bootstrap

## Features

-   **Auto-configuration of common packages** - @radrat-nest/logger, class-transformer, class-validator, cookie-parser, csurf, express-rate-limit, helmet, winston. It fixes https://docs.nestjs.com/recipes/prisma#issues-with-enableshutdownhooks if it detects @radrat-nest/prisma library. You just need to install them and @radrat-nest/bootstrap will detect and integrate them into app with reasonable defaults.
-   **Unified configuration** - loads and validates configuration from dotenv and CLI in unified format and exposes that in staticConfig variable. CLI arguments override `.env` variables.
-   **Fully customizable** - via hooks, middleware and providers you can turn off or replace with custom almost any behavior.

## Usage

### Bootstrapping application

`./src/main.ts`

```ts
import { Config, validationSchema, staticConfig } from './config.schema';

import { AppModule } from './app/app.module';
import { bootstrap } from '@radrat-nest/bootstrap';

void bootstrap<Config>({
    module: AppModule,
    bootstrap: {
        staticConfig,
    },
    joiValidation: {
        schema: validationSchema,
    },
}).catch((err: Error) => {
    console.error(err);
    process.exit(1);
});
```

### Accessing global configuration

```ts
import { staticConfig } from './config.schema';

const { config } = staticConfig;
```
npm package: @radrat-nest/logger
Description: ## Features
Latest version: 0.0.8

# @radrat-nest/logger

## Features

-   Logging to `./local/logs/main.log` file.
-   Different logger per service.
-   Formatting.

## Usage

1. Add to providers of module, where some services use logger.

```ts
@Module({
    providers: [...Logger.for([SomeService, SomeController, SomeGuard])],
})
```

2. Inject logger inside service constructor.

```ts
class SomeService {
    constructor(@InjectLogger(SomeService) private readonly logger: Logger) {}
}
```
npm package: @radrat-notion/time-schedules
Description: 1. Prepare .env
Author: Radioactive Rat Sp. z o.o.
Latest version: 2.0.42

# Usage

1. Prepare .env

```
TOKEN = NOTION_V2_TOKEN
URL = LINK_TO_NOTION_TIME_SCHEDULE_TABLE
```

2. Run `npx @radrat-notion/time-schedules`