open-index/open-npm huggingface dataset:
npm package: @fof-frontend/auth-oidc
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.
Author: faufee
Latest version: 0.0.14

# AuthOidc

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.

## Code scaffolding

Run `ng generate component component-name --project auth-oidc` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project auth-oidc`.
> Note: Don't forget to add `--project auth-oidc` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build auth-oidc` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build auth-oidc`, go to the dist folder `cd dist/auth-oidc` and run `npm publish`.

## Running unit tests

Run `ng test auth-oidc` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @fof-frontend/company-default
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.
Author: faufee
Latest version: 0.0.14

# CompanyDefault

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.

## Code scaffolding

Run `ng generate component component-name --project company-default` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project company-default`.
> Note: Don't forget to add `--project company-default` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build company-default` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build company-default`, go to the dist folder `cd dist/company-default` and run `npm publish`.

## Running unit tests

Run `ng test company-default` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @fof-frontend/core
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.
Author: faufee
Latest version: 0.0.14

# Core

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.1.

## Code scaffolding

Run `ng generate component component-name --project core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core`.
> Note: Don't forget to add `--project core` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build core` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build core`, go to the dist folder `cd dist/core` and run `npm publish`.

## Running unit tests

Run `ng test core` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @fofx/cron
Description: An input plugin for crontab-flavoured scheduled tasks for [fofx](https://github.com/functzia/fofx)
Author: Alon Niv
Latest version: 1.0.0

# fofx-cron

An input plugin for crontab-flavoured scheduled tasks for [fofx](https://github.com/functzia/fofx)

- **type:** `"cron"`
- **params (these go in your _plugins.json_):** none.
- **input params (these go in your _nano.json_ input key)**:
  - **cron [string]** the task's crontab syntax schedule.

## Sample _plugins.json_

```json
["fofx-cron"]
```

## Sample _nano.json_

```json
{
  "input": {
    "type": "cron",
    "cron": "*/20 * * * * *"
  }
}
```
npm package: @fofx/logger
Description: fofx logger lib
Author: oakfang
Latest version: 1.0.0

# logger

fofx logger lib

## Usage

```js
const { createLogger, textMode, jsonMode } = require('@fofx/logger');
const logger = createLogger();
logger.setMode(textMode, createLogger.logLevels.DOC);
logger.setMode(jsonMode);
const scopedLogger = logger.scoped('root').scoped('child');
logger.doc('meow');
logger.debug('meow');
logger.info('meow');
scopedLogger.warn('meow');
scopedLogger.error('meow');
scopedLogger.fatal('meow');
```

Prints:

```
[16-04-2019 22:02:15.305] [DOC] meow
[16-04-2019 22:02:15.305] [DEBUG] meow
[16-04-2019 22:02:15.305] [INFO] meow
{"level":2,"scope":[],"args":["meow"],"timestamp":1555405335305}
[16-04-2019 22:02:15.305] [WARN] (root/child) meow
{"level":3,"scope":["root","child"],"args":["meow"],"timestamp":1555405335305}
[16-04-2019 22:02:15.305] [ERROR] (root/child) meow
{"level":4,"scope":["root","child"],"args":["meow"],"timestamp":1555405335305}
[16-04-2019 22:02:15.305] [FATAL] (root/child) meow
{"level":5,"scope":["root","child"],"args":["meow"],"timestamp":1555405335305}
```
npm package: @fofx/mongodb
Description: An input/output plugin for MongoDB for [fofx](https://github.com/functzia/fofx)
Author: Alon Niv
Latest version: 1.0.0

# fofx-mongodb

An input/output plugin for MongoDB for [fofx](https://github.com/functzia/fofx)

- **type:** `"mongodb"`
- **params (these go in your _plugins.json_):** _none._
- **input params (these go in your _nano.json_ input key)**:
  - **connectionString [string]** connection string to your mongo cluster (must be cabaple of producing a Change Stream).
  - **db [string]** which database to connect to.
  - **collection [string]** trigger the nano on every insert to this collection, with the inserted document as a parameter.
- **output params (these go in your _nano.json_ output key):**
  - **connectionString [string]** connection string to your mongo cluster.
  - **db [string]** which database to connect to.
  - **collection [string]** insert the return value as a document to this collection, or documents, if the return value is an array.

## Sample _plugins.json_

```json
["fofx-mongodb"]
```

## Sample _nano.json_

```json
{
  "input": {
    "type": "mongodb",
    "connectionString": "mongodb+srv://<user>:<password>@host:port/<cluster>",
    "db": "fofxTest",
    "collection": "test"
  },
  "output": {
    "type": "mongodb",
    "connectionString": "mongodb://<user>:<password>@host:port/<cluster>",
    "db": "fofxTest",
    "collection": "test"
  }
}
```
npm package: @fofx/queue
Description: Pure node implementation of a local/distributed queue
Author: oakfang
Latest version: 2.0.1

# queue

Pure node implementation of a distributed queue

## Usage

```js
// broker.js
const { startQueueBroker } = require('@fofx/queue').distributed;
const { add } = startQueueBroker(9000);
add({ x: 1, y: 2 }).then(value => console.log(value));
```

```js
// worker.js
const { startQueueWorker } = require('@fofx/queue').distributed;
const worker = startQueueWorker('ws://localhost:9000');
worker.register(async function add({ x, y }) {
  const constant = await worker.get('const', 0);
  const value = x + y + constant;
  await worker.set('const', value);
  return x + y;
});
```