open-index/open-npm huggingface dataset:
npm package: @rbs-path/public-holidays
Description: gets public holidays within a specified timeframe
Author: Nikki Christofi
Latest version: 0.0.1
Deprecated: unsafe


# public-holidays

Gets public holidays within specified timeframes

  

## How to use

1. install package

       npm install @rbs-path/public-holidays

	or

       yarn add @rbs-path/public-holidays


2. require in code

       import getPublicHolidays from '@rbs-path/public-holidays'

	or

	   const { getPublicHolidays } = require('@rbs-path/public-holidays)

  

3. call getPublicHolidays with the specified params - dateRange and region

  

### Param 1: dateRange (object)

dateRange is an object with the keys 'start' and 'end'. The values should be a string with the format 'YYYY-MM-DD'

i.e. { start: '2019-08-11', end: '2019-08-18' }

If no date range is supplied, the next public holiday from today will be returned.

If the date range object does not contain a start AND end key, an empty array will be returned.

  

### Param 2: region

region is a string. Valid regions are 'england-and-wales', 'scotland' and 'northern-ireland'. If no daterange is supplied it will default to england-and-wales.

If an invalid region is requested an empty array will be returned.

  

## Examples

1. Get next public holiday (england-and-wales)

	   const holidays = getPublicHolidays()

  

2. Get next public holiday for Scotland

       const holidays = getPublicHolidays(null, 'scotland')

  

3. Get public holidays in August 2019

       const holidays = getPublicHolidays({ start: '2019-08-01', end: '2019-08-31' }, 'northern-ireland')

	or without region (defaults to england-and-wales)

       const holidays = getPublicHolidays({ start: '2019-08-01', end: '2019-08-31' })
npm package: @rbsoft/components
Description: Components para Angular
Author: Rafael Bocute
Latest version: 1.0.0

# RBComponents

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

## Code scaffolding

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

## Build

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

## Publishing

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

## Running unit tests

Run `ng test RBComponents` 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 README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @rbtc-eventkit/sdk
Description: TypeScript SDK for RBTC Onboarding EventKit.
Latest version: 0.2.2

# @rbtc-eventkit/sdk

TypeScript SDK for RBTC Onboarding EventKit.

## Install

```bash
npm install @rbtc-eventkit/sdk
```

## What’s included

- **Lifecycle normalization**: `normalizeStatus(status)` → canonical lifecycle
- **Webhook signing/verification**: HMAC SHA256 over the **raw JSON body**
- **Types**: `PegInLifecycle`, `PegInEvent`

## Usage

```ts
import {
  normalizeStatus,
  verifyRawBodyHmacSha256Hex,
  type PegInEvent,
} from "@rbtc-eventkit/sdk";

const lifecycle = normalizeStatus("confirmed_completed");

const ok = verifyRawBodyHmacSha256Hex({
  rawBody: rawJsonBodyString,
  secret: process.env.WEBHOOK_SECRET!,
  signatureHex: req.get("X-RBTC-Signature")!,
});
```

## Docs

See `docs/` in the repo for:

- webhook contract
- signature verification guide
- examples
npm package: @rbtc-eventkit/webhook-worker
Description: Self-hostable worker that polls a peg-in status backend, normalizes statuses into canonical lifecycle states, and delivers **signed webhooks** to an integrator endpoint.
Latest version: 0.1.1

# @rbtc-eventkit/webhook-worker

Self-hostable worker that polls a peg-in status backend, normalizes statuses into canonical lifecycle states, and delivers **signed webhooks** to an integrator endpoint.

## Install

```bash
npm install @rbtc-eventkit/webhook-worker
```

## Configure

Copy the env template:

```bash
cp .env.example .env
```

Key variables:

- `BACKEND_BASE_URL`, `BACKEND_DEPOSITS_PATH`
- `POLL_INTERVAL_MS`
- `WEBHOOK_ENDPOINT_URL`
- `WEBHOOK_SECRET`
- `STORAGE_MODE` and `STORAGE_PATH`

## Run

```bash
npm run dev
```

## Webhook headers

- `X-RBTC-Signature` (HMAC SHA256 hex of raw JSON body)
- `X-RBTC-Event`
- `X-RBTC-Event-Version`