open-index/open-npm huggingface dataset:
npm package: @risingstack/jaeger
Description: Out of the box OpenTracing instrumentation for Node.js and Jaeger
Author: RisingStack, Inc.
Latest version: 2.5.0

# jaeger-node

[![Build Status](https://travis-ci.org/RisingStack/jaeger-node.svg?branch=master)](https://travis-ci.org/RisingStack/jaeger-node)  

Out of the box distributed tracing for [Node.js](https://nodejs.org) applications.

**WARNING: experimental library, do not use in production yet**  

**This library is a higher level wrapper around [opentracing-auto](https://github.com/RisingStack/opentracing-auto), that you should consider to use instead of this library.**

## Technologies

- [async_hooks](https://github.com/nodejs/node/blob/master/doc/api/async_hooks.md)
- [Jaeger](https://uber.github.io/jaeger/)
- [OpenTracing](http://opentracing.io/)

**Requirements**

- Node.js, >= v8
- Jaeger

## Getting started

```sh
npm install @risingstack/jaeger
```

```js
// must be in the first two lines of your application
const Tracer = require('@risingstack/jaeger')
const tracer = new Tracer({
  serviceName: 'my-server-2'
})

// rest of your code
const express = require('express')
// ...
```

**To start Jaeger and visit it's dashboard:**

```sh
docker run -d -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778 -p16686:16686 -p14268:14268 jaegertracing/all-in-one:latest && open http://localhost:16686
```

## Example

The example require a running MongoDB.  

```sh
npm run example
curl http://localhost:3000
open http://localhost:16686
```

![Jaeger Node.js tracing](https://user-images.githubusercontent.com/1764512/26843812-c3198758-4af1-11e7-8aa3-1da55d9e58b6.png)

## API

### new Tracer(args)

Create a new Tracer and instrument modules.

- `args.serviceName`: Name of your service
  - **required**
  - example: `'my-service-1'`
- `args.sampler`: Jaeger sampler, see [sampler docs](https://github.com/uber/jaeger-client-node/tree/master/src/samplers)
  - *optional*
  - default: `new jaeger.RateLimitingSampler(1)`
- `args.reporter`: Jaeger reporter, see [reporter docs](https://github.com/uber/jaeger-client-node/tree/master/src/reporters)
  - *optional*
  - default: `new jaeger.RemoteReporter(new UDPSender())`
- `args.options`: Jaeger options, see [docs](https://github.com/uber/jaeger-client-node#initialization)
  - *optional*
  - example: `{ tags: { gitHash: 'foobar' } }`

## Instrumentations

Check out [opentracing-auto instrumentations](https://github.com/RisingStack/opentracing-auto#instrumentations).

## EMSGSIZE and UDP buffer limits

Read more about it in the [Client Libraries](https://github.com/uber/jaeger/blob/master/docs/client_libraries.md#emsgsize-and-udp-buffer-limits) documentation.
npm package: @risingstack/microtime
Description: Get the current time in microseconds
Author: Wade Simmons
Latest version: 2.1.9

# node-microtime

[![Travis Build](https://img.shields.io/travis/https://img.shields.io/travis/RisingStack/node-microtime.svg?label=linux,%20os%20x)](https://travis-ci.org/wadey/node-microtime)
[![AppVeyor Build](https://img.shields.io/appveyor/ci/WadeSimmons/node-microtime/master.svg?label=windows)](https://ci.appveyor.com/project/WadeSimmons/node-microtime)
[![npm](https://img.shields.io/npm/dm/@risingstack/microtime.svg)](https://www.npmjs.com/package/@risingstack/microtime)
[![npm](https://img.shields.io/npm/v/@risingstack/microtime.svg)](https://www.npmjs.com/package/@risingstack/microtime)

Date.now() will only give you accuracy in milliseconds. This module calls
`gettimeofday(2)` to get the time in microseconds and provides it in a few
different formats. The same warning from that function applies:
_The resolution of the system clock is hardware dependent, and the time may
be updated continuously or in ``ticks.''_

# Installation

    npm install @risingstack/microtime

# Usage

### microtime.now()

Get the current time in microseconds as an integer. Since JavaScript can only
represent integer values accurately up to `Math.pow(2, 53)`, this value will
be accurate up to _Tue, 05 Jun 2255 23:47:34 GMT_.

### microtime.nowDouble()

Get the current time in seconds as a floating point number with microsecond
accuracy (similar to `time.time()` in Python and `Time.now.to_f` in Ruby).

### microtime.nowStruct()

Get the current time and return as a list with seconds and microseconds (matching the return value of `gettimeofday(2)`).

# Example

    > var microtime = require('microtime')
    > microtime.now()
    1297448895297028
    > microtime.nowDouble()
    1297448897.600976
    > microtime.nowStruct()
    [ 1297448902, 753875 ]

## Estimating clock resolution

Starting with version 0.1.3, there is a test script that tries to guess the clock resolution. You can run it with `npm test microtime`. Example output:

    microtime.now() = 1298960083489806
    microtime.nowDouble() = 1298960083.511521
    microtime.nowStruct() = [ 1298960083, 511587 ]

    Guessing clock resolution...
    Clock resolution observed: 1us

## Warning for Cygwin users

It appears that Cygwin only implements `gettimeofday(2)` with [millisecond accuracy](http://old.nabble.com/gettimeofday---millisecond-accuracy-p21085475.html).
npm package: @risingstack/nx-framework
Description: Next generation client side framework
Author: Miklos Bertalan
Latest version: 1.0.0-alpha.6.1.0

# NX

[Home page](http://nx-framework.com), [Docs](http://nx-framework.com/docs)

### NX is a next generation client side framework, built with ES6 and Web Components.

The NX core is a tiny library, responsible for one thing only. It allows you to create and combine components and middlewares. A component executes its middlewares when it is attached to the DOM and gains all the added functionalities from them. NX comes with some core middlewares out of the box, which you can find listed below.

- Text interpolation: Interpolate values from the code into the view dynamically or one-time. Includes optional filters.
- Dynamic and custom attributes: Use one-time or dynamically evaluated native attributes or define some custom ones.
- Event handling: Add inline event handlers to listen on any event. Includes optional rate limiters.
- Visual flow: Use conditional blocks and loops inside the HTML view.
- Data binding: One-way, one-time or two-way data binding on any event and with no edge cases.
- Rendering: Modularize your HTML and CSS code by moving them into separate files for each component.
- Routing: Simple, but powerful routing with automatic parameter synchronization and router events.
- Dynamic styling: Simplify styling by passing objects to the style and class attributes.
- Animations: Create powerful animations by using only a few HTML attributes.
- Some other low level middlewares, mentioned in the Docs.
- Anything else you define with the simple `function middleware (elem, state, next) {}` syntax.

These can be combined to create components with the desired functionality.
Alternatively ready made core components (app, router) can be extended and used,
to avoid boilerplate code.

## Example app

The [NX Hacker News demo](https://github.com/nx-hacker-news/nx-hacker-news.github.io)
features client-side routing, real-time updates and animations.

- The code: https://github.com/nx-hacker-news/nx-hacker-news.github.io
- The live demo: https://nx-hacker-news.github.io/?type=top&page=0

## Resources

- [NX Docs](http://nx-framework.com/docs)
- [Hacker News in NX](https://github.com/nx-hacker-news/nx-hacker-news.github.io)
- [NX TodoMVC](https://github.com/tastejs/todomvc/pull/1679/files)
- [Article series about writing NX](https://blog.risingstack.com/writing-a-javascript-framework-project-structuring/)

## Installation

The best option is to download NX from the [download page](http://nx-framework.com/download).
If you would like to get it from npm instead, use the `npm install @risingstack/nx-framework` command.

## Contributing

[List of contributors](/contributors.md)

If you have a new feature idea, just open a new issue or PR.
Bug fixes and tests are always welcome. Thanks!
npm package: @risingstack/nx-seo
Description: An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.
Author: Miklos Bertalan
Latest version: 1.0.3

# nx-seo

An express middleware, that pre-renders [NX](http://nx-framework.com/) apps when the request user-agent is a crawler.
It also removes all the scripts from the page after rendering and before sending the final HTML.

## Installation

```
$ npm install @risingstack/nx-seo
```

## Platform support

NodeJS 6 and above.

## Usage

The below code creates a simple express server for NX. It servers static assets if found.
Then it detects crawler user-agents with the seo middleware and prerenders pages for them.
Finally it server the main page of the app for bootstrapping, if non of the above conditions are met.

```js
const express = require('express')
const app = express()
const server = require('http').createServer(app)
const seo = require('@risingstack/nx-seo')

const port = 8080
const ip = "127.0.0.1"
const mainFile = '/app.html'

app.use(express.static(__dirname))
app.use(seo({ timeout: 5, debug: true }))
app.use((req, res, next) => {
  if (req.accepts('html')) res.sendFile(__dirname + mainFile)
})

server.listen(port, ip)
```

## Configuration

You can pass a config object to `seo` as argument. It currently has two options.
`debug` is a boolean, which defaults to false. If you set it to true errors during
the pre-render will be forwarded to the NodeJS console.
`timeout` is a number, which defaults to 0. It applies a timeout to allow pre-rendering deferred
scripts before sending the result. Use it if your page doesn't render for the crawlers.

## Contributing

Bug fixes, tests and new ideas are always welcome. Thanks!
npm package: @risingstack/trace-cli
Description: CLI for Trace by RisingStack
Author: RisingStack Inc.
Latest version: 1.0.6

# trace-cli

Command line utility for [Trace by RisingStack](https://trace.risingstack.com/) monitoring tool.

## requirements

```
node >= 4.x.x
```

## install

```
npm i -g @risingstack/trace-cli
```

## usage

```
Usage: trace-cli [subcommand] <args ...>

Commands:

  deployhook   Sends deployhook to highlight your application versions in Trace
  help [cmd]   display help for [cmd]

Example: trace-cli deployhook --git

Options:

  -h, --help     output usage information
  -V, --version  output the version number
```

### deployhook

Sends deploy hook to highlight revisions on various Trace features like metrics charts.

```
Usage: trace-cli deployhook <args ...>

Options:

  -h, --help              output usage information
  -g, --git [value]       use last GIT commit for revision, description and user
  -r, --revision [value]  deploy revision, like GIT short hash
  -m, --message [value]   deploy description, like commit message
  -u, --user [value]      deploy created by, like committer
  --api-key [value]       TRACE_API_KEY from Trace
  --service-name [value]  TRACE_SERVICE_NAME from Trace
```

You can also pass api-key and service name as environment variables like: `TRACE_API_KEY` and `TRACE_SERVICE_NAME`.
npm package: @risingstar2018/artdefi-uikit
Description: Set of UI components for pancake projects
Latest version: 0.40.1

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @risingstar2018/artichain-eslint-config
Description: Eslint config for Artichainswap
Author: RabbitDoge
Latest version: 1.0.0

# eslint-config-artichain

Artichain Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @risingstar2018/artichain-eslint-config
```

Add `"extends": "@risingstar2018/artichain-eslint-config"` to your eslint config file.
npm package: @risingstar2018/artichain-swap-sdk
Description: 🛠 An SDK for building applications on top of artichain swap.(TestNet)
Latest version: 1.0.2

# Artichain Swap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/risingstar2018/artichain-swap-sdk/workflows/CI/badge.svg)](https://github.com/risingstar2018/artichain-swap-sdk)
[![npm version](https://img.shields.io/npm/v/@risingstar2018/artichain-swap-core/latest.svg)](https://www.npmjs.com/package/@risingstar2018/artichain-swap-core/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/risingstar2018/artichain-swap-sdk.git
```

Move into the artichain-swap-sdk working directory

```sh
cd artichain-swap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @risingstar2018/artichain-swap-uikit
Description: Set of UI components for artichain projects
Latest version: 1.0.20

# 🥞 Artichain UIkit

[![Version](https://img.shields.io/npm/v/@risingstar2018/artichain-swap-uikit)](https://www.npmjs.com/package/@risingstar2018/artichain-swap-uikit) [![Size](https://img.shields.io/bundlephobia/min/@risingstar2018/artichain-swap-uikit)](https://www.npmjs.com/package/@risingstar2018/artichain-swap-uikit)

Artichain UIkit is a set of React components and hooks used to build pages on Artichain's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @risingstar2018/artichain-swap-uikit`

## Setup

### Theme

Before using Artichain UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@risingstar2018/artichain-swap-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@risingstar2018/artichain-swap-uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://artichain.github.io/artichain-uikit/)
npm package: @risingstar2018/goodgamesguild-uikit
Description: Set of UI components for Good Games Guild projects
Latest version: 1.0.0

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @risingstar2018/santa-staking-uikit
Description: Set of UI components for Baby Santa Staking projects
Latest version: 1.0.0

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @risingstar2018/ventureswap-uikit
Description: Set of UI components for pancake projects
Latest version: 0.40.0

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @risiswap-libs/uikit
Description: Set of UI components for risi projects
Latest version: 1.0.2

# Panther UIkit

Panther UIkit is a set of React components and hooks used to build pages on Panther's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pantherswap-libs/uikit`

## Setup

### Theme

Before using Panther UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pantherswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pantherswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.
npm package: @risk3sixty/extension-sdk
Description: Phalanx automation extension SDK
Author: Lance Whatley
Latest version: 1.0.2

# fullCircle Automation Extension SDK

A library that can be used in fullCircle automations/extensions
to provide utilities to access common information available
in any automation execution and to send data ad hoc back to fullCircle
as needed.

## Install

```sh
$ npm install --save @risk3sixty/extension-sdk
```

## Example

```
import R3sSdk from '@risk3sixty/extension-sdk'

// Pass back table of data
R3sSdk.addExecutionTabularRows(arrayData)

// Upload a file
R3sSdk.uploadFile(csvData, 'filename.csv')
```

## Development

### Test Server

```sh
$ npx phalanxSdkTestServer
```
npm package: @risk3sixty/nessus-api-client
Description: API client for the Tenable Nessus API.
Author: Lance Whatley
Latest version: 0.0.6

# [risk3sixty](https://risk3sixty.com)

## NessusApiClient

API client for the Tenable Nessus API.

### Install

```
$ npm install @risk3sixty/nessus-api-client
```

### Usage

TODO

### Development

#### Tests

```
$ npm test
```
npm package: @riskdefy/chargebacks
Description: Chargebacks Vue component
Author: riskdefy
Latest version: 1.0.16

# Chargeback Response Builder

The chargeback response builder is an NPM module powered by Riskdefy.io, a web-based merchant management platform built to help merchant organizations that manage portfolios of merchant accounts.

Riskdefy.io technology creates dynamic-URL PDF chargeback responses in seconds. It streamlines the entire dispute process — loading  chargebacks to generating credit card rules-based responses — saving merchants valuable time, money and lost revenue from chargebacks.


<img src="https://content.pstmn.io/9336c376-033b-4512-a3dc-3730a6a6dcb6/bnBtbG9nby5zdmc=" width="164" height="111">


| Overview |
| -------- |
| You'll need to create an account in order to use the API. If you have a [riskdefy.io](https://app.riskdefy.io) Standard API package or higher, you can enable the API Workflow from the user account settings. The API is available for NPM level customer accounts only. [Create an account](https://app.riskdefy.io/sign-up?npm=1) |


<img src="https://app.docful.com/images/npmbuilder2.png">


## Features

- Auto-load new/incoming chargebacks
- Auto-retrieve customer records and details
- Advanced conditional logic based on card brand rules
- Create and send digital response packets via dynamic URL PDF
- Auto-match transactions with chargebacks
- Customizable generated responses
- Create automation flows for each merchant


## Installation

Install the Chargebacks module using npm:

```bash
npm install chargebacks
```

## Usage

Here is an example of how to use the Chargebacks module in a Vue project:

```javascript
import Chargebacks from 'chargebacks';

<Chargebacks apikey={your_api_key} merchantId={your_merchant_id} />
```

## Contributing

We welcome contributions! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

## For Businesses

### Integrate seamless chargeback responses into your web or mobile apps with Riskdefy

At Riskdefy.io we have expertise and technologies to create and respond to chargebacks seamlessly integrated with your product. We specialize in working with low to high risk merchant processing industries, including **Gambling, Adult, Online Games, Coaching, Nutra, Vape, CRM, and other software products** that require chargeback prevention and responding. By leveraging Riskdefy, we can assist in reducing the overall cost of developing and creating chargebck responses while ensuring security and compliance with local electronic document laws.

[Book a Meeting](https://calendly.com/jb--ylc/30min?month=2025-07)

[Documentation](https://documenter.getpostman.com/view/18935020/2sB34ZrQNt7)

## License

This version follows the best practices for `README.md` formatting and ensures clarity. Let me know if you need any modifications! 🚀
npm package: @riskformily/reactive-react
Description: ## QuikStart
Latest version: 2.0.16

# @riskformily/reactive-react

## QuikStart

```tsx
import React from 'react'
import { observable } from '@riskformily/reactive'
import { observer } from '@riskformily/reactive-react'

const obs = observable({
  count: 0,
})

export default observer(() => {
  return (
    <div>
      {obs.count}
      <button
        onClick={() => {
          obs.count++
        }}
      >
        Click
      </button>
    </div>
  )
})
```
npm package: @riskgame/cards
Description: Risk cards
Author: Bruno Scopelliti
Latest version: 1.0.0

# risk-cards

Risk cards

## Install

```bash
npm install risk-cards
```

## Cards

A card is like

```js
{
  continent: "europe",
  region: "southern-europe",
  type: "cavalier",
}
```

Possible card's types: `cannon`, `cavalier`, and `soldier`.
npm package: @riskgame/continents
Description: Determines which continents a player controls.
Author: Bruno Scopelliti
Latest version: 1.0.0

# risk-continents

Determines which continents a player controls.

## Install

```bash
npm install risk-continents
```

## Usage

```js
const getControlledContinents = require("risk-continents");

const world = {
  "alaska": { army: "Blue" },
  "argentina": { army: "Red" },
  ...
}

getControlledContinents("Blue", world); // ["asia", ..]
```
npm package: @riskgame/dice
Description: Computes wins/loses of a risk dice match
Author: Bruno Scopelliti
Latest version: 1.0.0

# risk-dice

Computes wins/loses of a risk dice match.

## Install

```bash
npm install risk-dice-simulator
```

## Rules

Each dice is compared in order of magnitude,
that is the greatest attacker's value against the greatest defender's value, and so on.

In case of draw, defender wins.

## Usage

```js
const battle = require("risk-dice-simulator");

const { result, attack, defense } = battle(/* attackerUnits */ 3, /* defenterUnits */ 2);

// `attack` contains attacker's dice result, eg. [6, 5, 2].
// `defense` contains defender's dice result, eg. [6, 4].
// `result` contains how many tanks each parties loses, eg. [1, 1].
```
npm package: @riskgame/reinforces
Description: Computes the number of reinforces a player can have
Author: Bruno Scopelliti
Latest version: 1.0.0

# risk-reinforces

Computes the number of reinforces a player can have.

## Install

```bash
npm install risk-reinforces
```

## Usage

```js
const getReinforcesCount = require("risk-reinforces");

const world = {
  "alaska": { army: "Blue" },
  "argentina": { army: "Red" },
}

getReinforcesCount("Blue", world); // [Number of reinforces, Number of regions]
```
npm package: @riskgame/target-cards
Description: Risk target cards
Author: Bruno Scopelliti
Latest version: 1.0.0

# risk-target-cards

Risk target cards.

## Install

```bash
npm install risk-target-cards
```

## Cards

A card is like

```js
{
  type: "destroy",
  plainText: "Destroy the Black army. If you are the Black army, or Black army are eliminated by someone else your objective becomes conqueer 24 territories",
  army: "black",
  fallback: {
    type: "regions",
    regions: 24,
    tankPerRegion: 1,
    tournament: false,
  },
  tournament: false,
}
```

Possible card's types: `destroy`, `regions`, `conqueer`, and `tournament`.

Card's fields change on the basis of the card's type. Other examples:

* Conqueer continents

```js
{
  type: "conqueer",
  plainText: "Conqueer the totality of Asia and South America",
  continents: ["asia", "south-america"],
  extra: false
  tournament: false,
}
```

* Conqueer regions:

```js
{
  type: "regions",
  plaintText: "Hold 18 territories with at least 2 tanks on each territory",
  regions: 18,
  tankPerRegion: 2,
  tournament: false,
}
```

* Tournament

```js
{
  type: "tournament",
  countries: ["congo", ...],
  plainText: "Conqueer the following countries: Congo, ...",
  tournament: true
}
```
npm package: @riski-react-ui/date-picker-material-ui
Description: Date picker React Component based material-ui
Author: DenisBykov
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @riski-react-ui/date-picker

> Datepicker React Component (build with Typescript) based Material-UI

[![NPM](https://img.shields.io/npm/v/@riski-react-ui/date-picker.svg)](https://www.npmjs.com/package/@riski-react-ui/date-picker) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)![npm bundle size]

---

## Install

```bash
npm install --save @riski-react-ui/date-picker
```

## Usage

```jsx
import React from 'react';

import DatePicker from '@riski-react-ui/date-picker-material-ui';

const onDatePickerDateChange = () => {};

<DatePicker
  id="search-date"
  datePickerChangeHandler={onDatePickerDateChange}
  name="SeacrhDate"
  label="Дата поиска"
  value="2020-12-28"
  maxDate="2021-12-31"
  minDate="2020-12-01"
  minDateMessage="Дата меньше допустимой"
  maxDateMessage="Дата больше допустимой"
/>
```

## Props

## License

MIT © [DenisBykov](https://github.com/BykovDenis)
npm package: @riskified/react-native-riskified-sdk
Description: React Native SDK
Author: Bekim Sinanovic
Latest version: 1.4.0

# react-native-riskified-sdk

Riskified's react native wrapper for mobile SDK's

## Installation

```sh
npm install @riskified/react-native-riskified-sdk
```

## Usage

```js
import RiskifiedSdk from '@riskified/react-native-riskified-sdk';

// On main page load
RiskifiedSdk.startBeacon(
  shopDomain: string,
  token: string,
  debug: boolean
): Promise<void>;

// On significant events and page visits
RiskifiedSdk.logRequest(
  requestUrl: string
): Promise<void>;

// If session ID updates for the user
RiskifiedSdk.updateSessionToken(
  newToken: string
): Promise<void>;

// To render OTP widget
RiskifiedSdk.renderOtpWidget(
  widgetToken: string,
  environment: 'sandbox' | 'staging' | 'production',
  debug: boolean
): Promise<string>;

// example for rendering the OTP widget
RiskifiedSdk.renderOtpWidget('token123', 'sandbox', true)
    .then((challengeAccessToken : string) => {
        // handle success verification
    })
    .catch((error) => {
        if (error.code === 'timeout') {
            // handle timeout
        } else if (error.code === 'widget_closed') {
            // handle close
        } else {
            // handle other errors
        }
    });

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @riskinputra/stick-component
Description: ## Project setup ``` npm install ```
Author: riskinputra
Latest version: 0.0.6

# frontend

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Run your unit tests
```
npm run test:unit
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @risklight/vue-mc
Description: Models and Collections for Vue.js 3. Fork of [vue-mc](https://github.com/FiguredLimited/vue-mc) with Vue 3 reactivity, full TypeScript support, and generic types.
Author: Rudi Theunissen
Latest version: 1.0.1

# @risklight/vue-mc

Models and Collections for Vue.js 3. Fork of [vue-mc](https://github.com/FiguredLimited/vue-mc) with Vue 3 reactivity, full TypeScript support, and generic types.

## Install

```bash
npm install @risklight/vue-mc
```

Peer dependency: `vue >= 3.0.0`

## Usage

```js
import { Model, Collection } from '@risklight/vue-mc';
import { required, string } from '@risklight/vue-mc/validation';

class User extends Model {
  defaults() {
    return {
      name: '',
      email: '',
    };
  }

  validation() {
    return {
      name: required.and(string),
      email: required,
    };
  }

  routes() {
    return {
      fetch: '/users/{id}',
      save:  '/users',
    };
  }
}

class Users extends Collection {
  model() {
    return User;
  }

  routes() {
    return {
      fetch: '/users',
    };
  }
}
```

### With TypeScript

Generics provide typed attributes, `get()`, `set()`, and autocomplete:

```ts
interface UserAttributes {
  id?: number;
  name: string;
  email: string;
}

class User extends Model<UserAttributes> {
  defaults(): Partial<UserAttributes> {
    return { name: '', email: '' };
  }
}

class Users extends Collection<User> {
  model() { return User; }
}
```

### Typed API

```ts
const user = new User({ name: 'Oleg' });

user.get('name');        // string
user.get('email');       // string
user.set('name', 'Max'); // typed
user.attributes.name;    // string
user.$.name;             // string | undefined (saved state)
user.identifier();       // string | number | null | undefined

// Without generic — all attributes are any:
const model = new Model();
model.get('anything');   // any
```

### Validation

```ts
import { required, string, email, length } from '@risklight/vue-mc/validation';

class User extends Model<UserAttributes> {
  validation() {
    return {
      name:  required.and(string).and(length(1, 100)),
      email: required.and(email),
    };
  }
}
```

## Changes from original vue-mc

- **Vue 3 reactivity** — `reactive()` for attributes, `shallowRef()` for boolean flags, `markRaw()` on instances
- **Generic types** — `Model<A>`, `Collection<M>`, `Response<T>` with full TypeScript strict mode
- **All types exported** — `Options`, `ModelOptions`, `HttpMethods`, `Routes`, `RequestOptions`, `BaseResponse`, etc.
- **No cloneDeep** — replaced with `copyFrom()` to avoid circular reference stack overflow on reactive objects
- **Build** — Rollup 3, TypeScript 5, ES module output

## Build

```bash
npm install
npm run build
```

## License

[MIT](LICENSE)
npm package: @riskmgmt/logger
Description: Angular 5 logging library
Author: Mark Phillips
Latest version: 1.0.6

# ts-library-starter
[![NPM version](https://img.shields.io/npm/v/ts-library-starter.svg)](https://www.npmjs.com/package/ts-library-starter)
[![Build Status](https://travis-ci.org/DxCx/ts-library-starter.svg?branch=master)](https://travis-ci.org/DxCx/ts-library-starter)
[![Coverage Status](https://coveralls.io/repos/github/DxCx/ts-library-starter/badge.svg?branch=master)](https://coveralls.io/github/DxCx/ts-library-starter?branch=master)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

Example git project that is used for typescript libraries as a starter pack

What does it include:
----
    1. exported class as example for an npm moudle
    2. packaging for npm modules (webpack + tslint + awesome-typescript-loader + dts-bundle)
    3. testings for npm modules (jest)
    4. code coverage (jest) when running tests
    5. Typescript => ES6 => ES5 (babel)
    6. Two versions embed in the package, one for node, one for browser (browserify)

Notes
----
Please note that you will need to rename the library name in some files:

    1. webpack.config.js (bundle_opts)
    2. package.json (ofcourse ;))
Also don't forget to reset package version ;)

Useful commands:
----
    npm run prebuild       - install NPM dependancies
    npm run build          - build the library files
    npm run test           - run the tests
    npm run test:watch     - run the tests (watch-mode)
    npm run coverage       - run the tests with coverage
    npm run coverage:watch - run the tests with coverage (watch-mode)
    npm run pack           - build the library, make sure the tests passes, and then pack the library (creates .tgz)
    npm run release        - prepare package for next release

Files explained:
----
    1. src - directory is used for typescript code that is part of the project
        1a. src/Example.ts - Just an example exported library, used to should import in tests.
        1b. src/Example.spec.ts - tests for the example class
        1c. src/index.ts        - index, which functionality is exported from the library
        1d. src/main.ts         - just wrapper for index
    3. package.json                 - file is used to describe the library
    4. tsconfig.json                - configuration file for the library compilation
    6. tslint.json                  - configuration file for the linter (both test and library)
    8. webpack.config.js            - configuration file of the compilation automation process for the library

Output files explained:
----
    1. node_modules                       - directory npm creates with all the dependencies of the module (result of npm install)
    2. dist                               - directory contains the compiled library (javascript + typings)
    3. <module_name>-<module_version>.tgz - final tgz file for publish. (result of npm run pack)
    4. coverage                           - code coverage report output made by istanbul
npm package: @riskmgmt/pipes
Description: Angular 5 useful pipes
Author: Mark Phillips
Latest version: 1.0.1

# ts-library-starter
[![NPM version](https://img.shields.io/npm/v/ts-library-starter.svg)](https://www.npmjs.com/package/ts-library-starter)
[![Build Status](https://travis-ci.org/DxCx/ts-library-starter.svg?branch=master)](https://travis-ci.org/DxCx/ts-library-starter)
[![Coverage Status](https://coveralls.io/repos/github/DxCx/ts-library-starter/badge.svg?branch=master)](https://coveralls.io/github/DxCx/ts-library-starter?branch=master)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

Example git project that is used for typescript libraries as a starter pack

What does it include:
----
    1. exported class as example for an npm moudle
    2. packaging for npm modules (webpack + tslint + awesome-typescript-loader + dts-bundle)
    3. testings for npm modules (jest)
    4. code coverage (jest) when running tests
    5. Typescript => ES6 => ES5 (babel)
    6. Two versions embed in the package, one for node, one for browser (browserify)

Notes
----
Please note that you will need to rename the library name in some files:

    1. webpack.config.js (bundle_opts)
    2. package.json (ofcourse ;))
Also don't forget to reset package version ;)

Useful commands:
----
    npm run prebuild       - install NPM dependancies
    npm run build          - build the library files
    npm run test           - run the tests
    npm run test:watch     - run the tests (watch-mode)
    npm run coverage       - run the tests with coverage
    npm run coverage:watch - run the tests with coverage (watch-mode)
    npm run pack           - build the library, make sure the tests passes, and then pack the library (creates .tgz)
    npm run release        - prepare package for next release

Files explained:
----
    1. src - directory is used for typescript code that is part of the project
        1a. src/Example.ts - Just an example exported library, used to should import in tests.
        1b. src/Example.spec.ts - tests for the example class
        1c. src/index.ts        - index, which functionality is exported from the library
        1d. src/main.ts         - just wrapper for index
    3. package.json                 - file is used to describe the library
    4. tsconfig.json                - configuration file for the library compilation
    6. tslint.json                  - configuration file for the linter (both test and library)
    8. webpack.config.js            - configuration file of the compilation automation process for the library

Output files explained:
----
    1. node_modules                       - directory npm creates with all the dependencies of the module (result of npm install)
    2. dist                               - directory contains the compiled library (javascript + typings)
    3. <module_name>-<module_version>.tgz - final tgz file for publish. (result of npm run pack)
    4. coverage                           - code coverage report output made by istanbul
npm package: @riskus/pwa-elements
Description: Stencil Component Starter forked from ionic
Author: Ionic Team
Latest version: 3.1.2

# Ionic Elements for Progressive Web Apps

This project is a growing collection of pre-built UI experiences for Web APIs such
as camera/video, focused on building Progressive Web Apps that meet and exceed
native mobile app experiences.

These elements are a key part of our mission to build the [Progressive Web App OS](https://medium.com/@maxlynch/building-the-progressive-web-app-os-57daebcb69c1)
by providing awesome UIs on top of low-level Web APIs.

These components are built as Web Components that can be used in any web app, using
the power of [Stencil JS](http://stenciljs.com/).

## Currently Supported

Currently, the project offers a quality in-app Camera experience using
`getUserMedia`, with support for multiple cameras and with automatic handling
of image data.

See [the provided example](https://github.com/ionic-team/ionic-pwa-elements/blob/master/src/index.html)
for an example of how to use these components.

## Capacitor Usage

Ionic PWA Elements were built primarily for developers using [Capacitor](http://capacitor.ionicframework.com/),
our Native app container that allows web apps to run on nearly every platform
with consistent APIs.

Ionic PWA Elements offer web-UI experiences for Capacitor apps running in a browser
as PWA, such that the API is identical for the PWA and the native app store app.

See the [Capacitor PWA Elements](https://capacitor.ionicframework.com/docs/pwa-elements)
page for more information on using this library in your Capacitor apps.
npm package: @riskymh/aws
Description: Custom SDK and Types for AWS services (ie S3 and by extension R2)!
Author: RiskyMH
Latest version: 0.0.9

# `@riskymh/aws`
This package provides a set of utilities for working with AWS services.
It extends [`aws4fetch`](https://npmjs.com/package/aws4fetch) to add types and methods. As such it works well in serverless environments and is a good alternative to the bloated [`@aws-sdk/client-s3`](https://www.npmjs.com/package/@aws-sdk/client-s3).

If the types are wrong or you have a feature request, please open an issue on [the repo](https://github.com/RiskyMH/aws-sdk).

**NOTE:** This is v0 still and can contain breaking changes.

## S3 API (`@riskymh/aws/s3`)
All the actions that the [AWS S3 API Docs](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Operations_Amazon_Simple_Storage_Service.html) include should be available in this package. This has only been tested with R2, if you find any issues please open an issue.

This package also works with Cloudflare R2

### S3 Example:
```ts
import { S3Client } from '@riskymh/aws/s3'

const s3 = new S3Client({
    accessKeyId: "",
    secretAccessKey: "",
    region: "auto",
    url: "https://xxxxxxxxxxxxxxxx.r2.cloudflarestorage.com/bucketName"
})

const response = await s3.ListObjectsV2()
console.log(response) // { Contents: [{ Key: "yes.txt", Size: 1, LastModified: "2024-01-01T01:00:00.00.000Z" }], IsTruncated: false }
// ^ this was automatically parsed from the XML response

const objectUrl = s3.presign.GetObject({ Key: "yes.txt" })
console.log(objectUrl) // "https://xxxxxxxxxxxxxxxx.r2.cloudflarestorage.com/bucketName/yes.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=...&X-Amz-Date=...&X-Amz-Expires=...&X-Amz-SignedHeaders=host&X-Amz-Signature=..."
```

## Contributing
The types and routes are manually added, so you can update that directly and open a PR.
npm package: @riskymh/discord-markdown
Description: A markdown parser for Discord messages
Author: Brussell
Latest version: 3.0.0

# discord-markdown
A markdown parser for Discord messages.

## FORKED

Added the following because discord support:

* lists (ordered and unordered)
* masked links (now always used)
* headings (h1-h6)

Also used `@khanacademy/simple-markdown` instead of `simple-markdown` because its the updated version.

## Using

```bash
yarn add discord-markdown
npm i discord-markdown
```

For browser use, import `dist/discord-markdown.min.js`

```js
const { parser, htmlOutput, toHTML } = require('discord-markdown');

console.log(toHTML('This **is** a __test__'));
// => This <strong>is</strong> a <u>test</u>
```

Fenced codeblocks will include highlight.js tags and classes.

## Options

```js
const { toHTML } = require('discord-markdown');
toHTML('This **is** a __test__', options);
```

`options` is an object with the following properties (all are optional):

* `embed`: Boolean (default: false), if it should parse embed contents (rules are slightly different)
* `escapeHTML`: Boolean (default: true), if it should escape HTML
* `discordOnly`: Boolean (default: false), if it should only parse the discord-specific stuff
* `discordCallback`: Object, callbacks used for discord parsing. Each receive an object with different properties, and are expected to return an HTML escaped string
  * `user`: (`id`: Number) User mentions "@someperson"
  * `channel`: (`id`: Number) Channel mentions "#somechannel"
  * `role`: (`id`: Number) Role mentions "@somerole"
  * `everyone`: () Everyone mention "@everyone"
  * `here`: () Here mention "@here"
* `cssModuleNames`: Object, maps CSS class names to CSS module class names

### Mention and Emoji Handling

Using the `discordCallback` option you can define custom functions to handle parsing mention and emoji content. You can use these to turn IDs into names.

Example:

```js
const { toHTML } = require('discord-markdown');
toHTML('This is a mention for <@95286900801146880>', {
	discordCallback: {
		user: node => '@' + users[node.id];
	}
}); // -> This is a mention for @Brussell
```

## Customizing

It is possible to change the rules used by discord-markdown. Take a look at the code to see how to create your own modified rule set.

## Contributing

Find an inconsistency? File an issue or submit a pull request with the fix and updated test(s).