open-index/open-npm huggingface dataset:
npm package: @foundriesio/jobserv-api
Description: JobServ API for nodejs
Author: Milo Casagrande
Latest version: 6.1.14

An interface to interact with api.foundries.io remote resources.

## How to use it

```JavaScript
import { generateFioApiResources } from '@foundriesio/jobserv-api';

const FioApi = generateFioApiResources(address);

await FioApi.Projects.find(...args);
```
npm package: @foundriesio/redis-client
Description: A redis client for *.foundries.io web apps
Author: Milo Casagrande
Latest version: 4.4.11

A redis client wrapper, used on \*.foundries.io web applications.

It is based on the [redis](https://www.npmjs.com/package/redis) nodejs client.

## How to use it

```JavaScript
import redisClient from '@foundriesio/redis-client';

return redisClient();
```

## Configuration

Via a JSON file with the following structure:
```JSON
{
  "redis": {
    "host": "The redis host, defaults to localhost",
    "port": "The redis port, defaults to 6379",
    "password": "The redis access password"
  }
}
```

The JSON file can be defined using the `FIO_CONFIG_FILE` environment variable:
```bash
export FIO_CONFIG_FILE="/path/to/config.json"
```

Or using the following environment variable:
* `FIO_REDIS_HOST`: the redis host, defaults to `localhost` (string).
* `FIO_REDIS_PORT`: the redis port, defaults to `6379` (number).
* `FIO_REDIS_PASSWORD`: the redis password, not set by default (string).
npm package: @foundriesio/request
Description: A Promise-based HTTP(s) request module
Author: Milo Casagrande
Latest version: 1.0.7

# request-promise

A Promise-based HTTP(S) request module for NodeJS.
No browser support.

# Warning

Although being used in production, this module is experimental, and is definetely
not complete.

Not all features are documented (yet).
npm package: @foundriesio/web-session
Description: Handle *.foundries.io webapps server/cookie sessions
Author: Milo Casagrande
Latest version: 3.2.7

An [express-session](https://github.com/expressjs/session) based session handler for express web applications.

It is based on the redis session store.

## How to use it

```JavaScript
import session from '@foundriesio/web-session';

import log from 'log' // Provide a log function.
import redisClient from 'redis-client' // Provide a redis client.

return session(redisClient, log);
```

## Configuration

Via a JSON file with the following structure:

```JSON
{
  "cookie": {
    "domain": "The cookie domain name, defaults to localhost",
    "secure": "If the cookie should be secure (like HTTPS only), defaults to false",
    "maxAge": "The cookie max age, defaults to 3 days"
  },
  "session": {
    "secret": "The server side session secret, defaults to 'taco cat'",
    "prefix": "The previs for the session key, defaults to 'sid:'",
    "name": "The name of the session key, defaults to 'sid'"
  }
}
```

The JSON file can be defined using the `FIO_CONFIG_FILE` environment variable:

```bash
export FIO_CONFIG_FILE="/path/to/config.json"
```

Or using the following environment variable:

- `FIO_COOKIE_DOMAIN`: The cookie domain name, defaults to `localhost` (string).
- `FIO_COOKIE_SECURE`: If the cookie should be secure (HTTPS-only), defaults to `false` (boolean).
- `FIO_COOKIE_MAXAGE`: The cookie max age, defaults to 3 days (string or number, string can also be specified as `3 days`).
- `FIO_SESSION_SECRET`: The server side session secret, defaults to `taco cat` (string).
- `FIO_SESSION_NAME`: The name of the session key, defaults to `sid` (string).
- `FIO_SESSION_PREFIX`: The prefix for the session key, defaults to `sid:` (string).