open-index/open-npm huggingface dataset:
npm package: @hauslo/pipeline-website-static
Description: Module for @hauslo/pipeline. Deploys a static website to S3 Static Website
Latest version: 0.1.0

# README

[![npm](https://img.shields.io/npm/v/@hauslo/pipeline-website-static?style=flat-square)](https://www.npmjs.com/package/@hauslo/pipeline-website-static)

This modules expects aws secrets to be present in the environment (`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables with valid credentials).

## Options

- `public` is the path from the resource to the website public root. `public` defaults to `"public"` (ex: `"public"`, `"build/public"`).
- `region` is the aws region to deploy to. `region` defaults to `"eu-west-3"`.

## Infra

The underlying terraform module can be found at <https://github.com/hauslo/infra-website> (can be tested locally)

## Test

No test until `@hauslo/pipeline@0.2.0`

## QA

```bash
npm run prettier
npm run prettier-apply
npm run lint
npm run lint-apply
```
npm package: @hauslo/util-mongo-client
Description: See the [example](./example/index.js)
Author: fntb
Latest version: 0.1.3

# `@hauslo/util-monog-client`

See the [example](./example/index.js)

```js
const Log = require("debug");
const startMongoClient = require("@hauslo/util-monog-client");

const NAMESPACE = "demo";

const log = Log(`${NAMESPACE}:test`);
Log.enable(`${NAMESPACE}*`);

const url = "mongodb://localhost:27017";

const { getClient: getMongoClient, stop: stopMongoClient } = startMongoClient({
  config: { url },
  log,
});

(async () => {
  const client = await getMongoClient().catch((err) => log(err));
  await stopMongoClient();
})();
```
npm package: @hauslo/util-nats-client
Description: ```js const Log = require("debug"); const { start, NatsClient } = require("@hauslo/util-nats-client");
Author: fntb
Latest version: 0.1.6

# `@hauslo/util-nats-client`

```js
const Log = require("debug");
const { start, NatsClient } = require("@hauslo/util-nats-client");

const namespace = "authorization-svc";
const log = Log(namespace);
Log.enable(namespace);

const { stop, client: nats } = start({
    config: {
        namespace
        urls: ["nats://nats:4222"]
    }
    log,
    options: {}
});

const client = new NatsClient({ client: nats, namespace, service: true });

client.respond("user.role", "grant", async (metadata = { auth }, message = { user, service }) => {
    if (!auth?.service){
        throw new Error("Unauthorized");
    }
    // ...
    return { user, service };
});

// ...
```
npm package: @hausofweb/oauth2bearer
Description: Gets Bearer tokens from a request and issues errors per [rfc6750](https://tools.ietf.org/html/rfc6750)
Author: Kenton Duprey
Latest version: 1.1.1

# @hausofweb/oauth2bearer

Gets Bearer tokens from a request and issues errors per [rfc6750](https://tools.ietf.org/html/rfc6750)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)