open-index/open-npm huggingface dataset:
npm package: @ist-group/dynamic-bunyan-seq
Description: The purpose of this module is to control the seq log level dynamically from the seq server interface.
Author: Oscar Thunberg
Latest version: 3.2.0

# Dynamic bunyan seq

The purpose of this module is to control the seq log level dynamically from the seq server interface.

# Install

```bash
yarn add @ist-group/dynamic-bunyan-seq
```

# Usage

```javascript
import { createAttachDynamicSeq } from "@ist-group/dynamic-bunyan-seq";

const logger = bunyan.createLogger({
  name: "Logger-name",
  src: true
});

const { update, seqStream, flush } = createAttachDynamicSeq({
  bunyanLogger: logger,
  seqHost: config.SEQ_HOST,
  seqApiKey: config.SEQ_API_KEY
});
```

```
update: poll new log level
flush: flush the buffer, useful when the service is about to die
seqStream: the object that is given from require("bunyan-seq").createStream()
```

| Param          | required | Default | Description                 |
| -------------- | -------- | ------- | --------------------------- |
| bunyanLogger   | yes      | -       | The Bunyan logger object    |
| seqHost        | yes      | -       | ex: https://seq.example.com |
| seqApiKey      | no       | -       | Seq api key                 |
| requestTimeout | no       | 30 000  | request timeout in ms       |

# Additional: Formated output

Also included is a tool to display console output with included properties (the seq way)

## Usage

Pipe output from node into bunyan-seq-format:

`node build/server.js | ./node_modules/.bin/bunyan-seq-format -o short`

Example of log:

```javascript
logger.info(
  { status: 200, statusMessage: "Ok" },
  "Request finished with status: {status} and message: {statusMessage}"
);
```
npm package: @ist-group/eslint-config-node
Description: Eslint config for Node projects
Author: IST Group
Latest version: 1.1.2

# @ist-group/eslint-config-node

ESLint config for Node projects.

## Installation

```sh
yarn add -D @ist-group/eslint-config-node
```

Then extend the config in your .eslintrc file.

```json
{
  "extends": "@ist-group/eslint-config-node"
}
```
npm package: @ist-group/eslint-config-react-dom
Description: Eslint config for React dom projects
Author: IST Group
Latest version: 1.1.0

# @ist-group/eslint-config-react-dom

ESLint config for React Dom projects.

## Installation

```sh
yarn add -D @ist-group/eslint-config-react-dom
```

Then extend the config in your .eslintrc file.

```json
{
  "extends": "@ist-group/eslint-config-react-dom"
}
```
npm package: @ist-group/eslint-config-react-native
Description: Eslint config for React Native projects
Author: IST Group
Latest version: 1.1.0

# @ist-group/eslint-config-react-native

ESLint config for React Native projects.

## Installation

```sh
yarn add -D @ist-group/eslint-config-react-native
```

Then extend the config in your .eslintrc file.

```json
{
  "extends": "@ist-group/eslint-config-react-native"
}
```
npm package: @ist-group/pg-typegen
Description: Generate typescript interfaces from a postgresql schema.
Latest version: 0.0.9

# Description

Generate typescript interfaces from a postgresql schema.

# Config

The type-gen will look for database connection information in the config. The connection information is directly put into pg-promise. See [pg-promise connection syntax](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax) for more information if needed.

Expected propertes:
```
host: string
port: number
database: string
user: string
password: string
```

Example:
```
{
  "host": "localhost",
  "port": 5432,
  "database": "local-database",
  "user": "root",
  "password": "root"
}
```

There is a possibility to set a root of the properties inside the json file with `--config-root`. This is useful if the database information is not at root level.

Example:
```
pg-types --config ./config.json --config-root db.config --output ./output.ts

./config.json
{
  "db": {
    "config": {
      "host": "localhost",
      "port": 5432,
      "database": "local-database",
      "user": "root",
      "password": "root"
    }
  }
}
```

# Options

`--config <config>`, `-c <config>` Set a relative path to the config to use.

`--config-root <path.to.properties>`, `-r <path.to.properties>` Set a root of the expected properties in the given config file.

`--desnake`, `-d` Replace snake_casing with CamelCasing in the generated output.

```
interface table_name {
  column_name: number;
}
```

will become

```
interface TableName {
  columnName: number;
}
```

`--output <filename>`, `-o <filename>` Output filename.

# Examples

`pg-types --config ./config.json ./output.ts`,
`pg-types --config ./config.json --config-root db.config --output ./output.ts`,
`pg-types --config ./config.json -d ./output.ts`,
npm package: @ist-group/playground-oidc-express
Description: A library for hosting graphql playground with oidc login as express middleware.
Author: Oscar Thunberg
Latest version: 0.0.11

# playground-oidc-express

A library for hosting graphql playground with oidc login as express middleware.

## Installation

`yarn add @ist-group/playground-oidc-client`

# Usage

```ts
import playground from "@ist-group/playground-oidc-express";

server.use(
  "/playground",
  playground({
    endpoint: "/graphql",
    auth: {
      clientId: "community-portal",
      scope: "openid profile community",
      authority: "https://demo.skolid.se"
    }
  })
);
```

Playground is now accessable from `<domain>/playground`.

## Config

By default the authentication headers are only sent to the endpoint specified.

A list of regex (`authHeaderFilters`) can be included to allow headers to other paths and/or domains.

```ts
authHeaderFilters: [
  /^http:\/\/localhost:4010\/other_graphql$/,
  /^https:\/\/example.com\/graphql$/
];
```

Other params:

```ts
acrValues?: string; // default undefined
automaticSilentRenew?: boolean; // default true
noAutomaticLogin?: boolean; // default false
```

# IdP configuration

The URL:s / paths which this library uses:

- Redirect: \<basePath>
- Post logout: \<basePath>
- Silent renew: \<basePath>/silent-renew.html

## configuration example from code above:

- Redirect: http://localhost:4010/playground
- Post logout: http://localhost:4010/playground
- Silent renew: http://localhost:4010/playground/silent-renew.html

Note: trailing "`/`" (slash) is removed