open-index/open-npm huggingface dataset:
npm package: @hyperjump-defi/onramper-widget
Description: Onramper allows your users to buy cryptocurrency with fiat, directly from your website or app.
Latest version: 2.2.27

# Onramper widget
Onramper allows your users to buy cryptocurrency with fiat, directly from your website or app.

For docs and examples visit: [docs.onramper.com](https://docs.onramper.com/)

###### Installation

```shell
# Using yarn
$ yarn add @onramper/widget

# Using npm
$ npm install @onramper/widget
```

###### Code snippet
```javascript
import OnramperWidget from "@onramper/widget";

export default function OnramperWidgetContainer() {
  return (
    <div style={{maxWidth: '440px',  maxHeight: '595px',  height: '100%',  width: '100%'}}>
      <OnramperWidget
        color="#266678"
        defaultAmount={200}
        defaultCrypto="BTC"
        API_KEY="pk_live_YOUR-API-KEY"
      />
    </div>
  )
}
```
###### Live example & customization
While importing the widget as a React component, you can customize it using the component props below. 
[CodeSandbox](https://codesandbox.io/s/onramper-widget-react-component-y3nd1)

#### Component props
| Name           | Type      | Example                              | Default value |
| -------------- | --------- | ------------------------------------ | ------------- |
| defaultCrypto  | String?   | `"ETH"`                              | undefined     |
| defaultAmount  | Number?   | `500`                                | 100           |
| defaultAddrs   | Object?   | `{"BTC":["ADDR1"], "ETH":["ADDR2"]}` | {}            |
| onlyCryptos    | String[]? | `["BTC", "ETH", "NEO"]`              | undefined     |
| excludeCryptos | String[]? | `["ETH", "NEO"]`                     | undefined     |
| onlyGateways   | String[]? | `["Moonpay", "Wyre"]`                | undefined     |
| color          | String?   | `"#000000"`                          | "#31a5ff"     |
| API_KEY        | String    | `"pk_live_YOUR-API-KEY"`             | -             |

## Customize
You can pass the following arguments to customize the widget

| Parameter      | Description    |
| -------------- | -------------- |
| defaultCrypto  | Select a specific cryptocurrency by default. Should be specified the cryptocurrency code. |
| defaultAmount  | Positive integer representing the base amount of fiat to be filled in the widget. Should be indicated in USD, for other currencies, a rounded aproximated conversion will be automatically applied.|
| addresses      | A stringified JSON with the wallet addresses of the user. The keys should be the cryptocurrency code and the value a list containing the user addresses. Can be more than one address per wallet and more than one cryptocurrency. |
| onlyCryptos    | A comma-separated list of crypto codes to include. Only this cryptos will be shown to the user.|
| excludeCryptos | A comma-separated list of crypto codes to exclude. This cryptos will be excluded from the list of available cryptos..|
| onlyGateways   | A comma-separated list of gateways to enable. Only these gateways will be shown to the user for selection.|
| color          | Color to change the highlight of the widget. Should be an hex color.|
npm package: @hyperjump-defi/sdk
Description: 🛠 An SDK for building applications on top of HyperJump.
Author: angry_mech
Latest version: 0.1.25

# Hyperjump SDK

Common library used across Hyperjump repositories and projects.

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## 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/HyperJump-DeFi/hyperjump-swap-sdk.git
```

Move into the sdk working directory

```sh
cd bscswap-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: @hyperjump-defi/uikit
Description: Set of UI components for hyperjump projects
Latest version: 0.0.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: @hyperjump/json
Description: JSON parser and stringifier with JSON Pointer support
Author: Jason Desrosiers
Latest version: 0.2.1

Json
====

This is a reimplementation of the builtin `JSON` object to add JSON Pointer
parameters to the "reviver" and "replacer" functions. Other than the added
parameters, the interface and behavior is the same as the original.

Installation
------------
Includes support for node.js (ES Modules, TypeScript) and browsers.

```bash
npm install @hyperjump/json
```

Usage
-----

```javascript
import * as Json from "@hyperjump/json";

const subject = `{
  "type": "object",
  "properties": {
    "foo": { "type": "string" },
    "bar": { "$ref": "#/$defs/number" }
  },
  "required": ["foo", "bar"],

  "$defs": {
    "number": { "type": "number" }
  }
}`;
const result = Json.parse(subject, (key, value, pointer) => {
  console.log("REVIVER", pointer, key, JSON.stringify(value));
  return value;
});

const json = Json.stringify(result, (key, value, pointer) => {
  console.log("REPLACER", pointer, key, value);
  return value;
}, "  ");
```

Contributing
------------

### Tests

Run the tests

```bash
npm test
```

Run the tests with a continuous test runner
```bash
npm test -- --watch
```
npm package: @hyperjump/json-schema-formats
Description: A collection of validation functions for the JSON Schema `format` keyword.
Author: Jason Desrosiers
Latest version: 1.0.1

# Hyperjump - JSON Schema Formats 

A collection of validation functions for the JSON Schema `format` keyword.

## Install

This module is designed for Node.js (ES Modules, TypeScript) and browsers. It
should work in Bun and Deno as well, but the test runner doesn't work in these
environments, so this module may be less stable in those environments.

### Node.js

```bash
npm install @hyperjump/json-schema-formats
```

### TypeScript

This package uses the package.json "exports" field. [TypeScript understands
"exports"](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing),
but you need to change a couple settings in your `tsconfig.json` for it to work.

```jsonc
    "module": "Node16", // or "NodeNext"
    "moduleResolution": "Node16", // or "NodeNext"
```

## API

<https://json-schema-formats.hyperjump.io/modules.html>

## Contributing

Contributions are welcome! Please create an issue to propose and discuss any
changes you'd like to make before implementing it. If it's an obvious bug with
an obvious solution or something simple like a fixing a typo, creating an issue
isn't required. You can just send a PR without creating an issue. Before
submitting any code, please remember to first run the following tests.

- `npm test` (Tests can also be run continuously using `npm test -- --watch`)
- `npm run lint`
- `npm run type-check`
npm package: @hyperjump/pact
Description: Higher order functions for iterators and async iterators
Author: Jason Desrosiers
Latest version: 1.4.0

# Hyperjump Pact

Hyperjump Pact is a utility library that provides higher order functions for
working with iterators and async iterators.

## Installation
Designed for node.js (ES Modules, TypeScript) and browsers.

```bash
npm install @hyperjump/pact --save
```

## Usage

```javascript
import { pipe, range, map, filter, reduce } from "@hyperjump/pact";


const result = pipe(
  range(1, 10),
  filter((n) => n % 2 === 0),
  map((n) => n * 2),
  reduce((sum, n) => sum + n, 0)
);
console.log(result);
```

```javascript
import { pipe, asyncMap, asyncFilter, asyncReduce } from "@hyperjump/pact";
// You can alternatively import the async functions without the prefix
// import { pipe, map, filter, reduce } from "@hyperjump/pact/async";


const asyncSequence = async function* () {
  yield 1;
  yield 2;
  yield 3;
  yield 4;
  yield 5;
};

for await (const value of asyncSequence()) {
  console.log(value);
}

const result = await pipe(
  asyncSequence(),
  asyncFilter((n) => n % 2 === 0),
  asyncMap((n) => n * 2),
  asyncReduce((sum, n) => sum + n, 0)
);
console.log(result);
```

## API

https://pact.hyperjump.io

## Contributing

### Tests

Run the tests

```bash
npm test
```

Run the tests with a continuous test runner

```bash
npm test -- --watch
```

[hyperjump]: https://github.com/hyperjump-io/browser
[jref]: https://github.com/hyperjump-io/browser/blob/master/src/json-reference/README.md
npm package: @hyperjump/uri-template
Description: An RFC-6570 URI Template implementation
Author: Jason Desrosiers
Latest version: 0.3.0

# URI Template

This is an implementation of [RFC 6570](https://tools.ietf.org/html/rfc6570) -
URI Template.

* Supports Level 4
* Separate parse and expand steps
  * More efficient expansion
  * Introspect a template
  * Validate that a template is correct without expanding
* Partially expand template with incomplete data
* Detailed error messaging

## Installation

```bash
npm install @hyperjump/uri-template
```

## Usage

```javascript
const UriTemplate = require("@hyperjump/uri-template");


// Parse and expand in one step
UriTemplate.expand("/foo{?foo,bar}", { foo: "aaa", bar: "bbb" }); // => /foo?foo=aaa&bar=bbb

// Parse a URI Template
const template = UriTemplate.parse("/foo{?foo,bar}");

// Expand a URI Template from the pre-parsed template
UriTemplate.expand(template, { foo: "aaa", bar: "bbb" }); // => /foo?foo=aaa&bar=bbb
UriTemplate.expand(template, { foo: "ccc", bar: "ddd" }); // => /foo?foo=ccc&bar=ddd

// Convert a parsed template back into a string
UriTemplate.stringify(template); // => /foo{?foo,bar}

// Partially expand template with incomplete data
const template = UriTemplate.expandPartial("/foo/{foo}{?bar}", { foo: "aaa" });
UriTemplate.stringify(template); // => /foo/aaa{?bar}
UriTemplate.expand(template, { bar: "bbb" }); // => /foo/aaa?bar=bbb
```

## API

* **parse**: (string) => Template

    Parse a URI Template

* **expand**: (Template | string, Object) => string

    Expand a URI template. The first argument can either be a URI Template AST
    (the result of `parse`) or a URI Template string.

* **expandPartial**: (Template | string, Object) => Template

    Partially expand a URI template. This function will expand the expressions
    using the data passed, but it will skip any expressions it doesn't have
    defined data for. The first argument can either be a URI Template AST (the
    result of `parse`) or a URI Template string. The result is a URI Template
    AST.

* **stringify**: (Template) => string

    Convert a URI Template AST back into a URI Template string

* **Template**: array

    An AST representing URI Template

## Contributing

### Tests

Run the tests

```bash
npm test
```

Run the tests with a continuous test runner
```bash
npm test -- --watch
```
npm package: @hyperjumptech/db-connection-checker
Description: A Node.js library for checking database connection
Author: Kevin Hermawan
Latest version: 0.0.2

# @hyperjumptech/db-connection-checker

A Node.js library for checking database connection

## Installation

```bash
npm i @hyperjumptech/db-connection-checker
```

## Database Supports

1. [MariaDB](#mariadb)
2. [MongoDB](#mongodb)
3. [Postgres](#postgres)
4. [Redis](#redis)

## API

### CheckConnectionOptions

```ts
type CheckConnectionOptions = {
  host?: string;
  port?: number;
  user?: string;
  password?: string;
  database?: string;
  timeout?: number;
};
```

---

### MariaDB

**`checkMariaDBConnection(options?: CheckConnectionOptions): Promise<boolean>`**

Checks MariaDB connection.

```ts
import { checkMariaDBConnnection } from '@hyperjumptech/db-connection-checker';

const isConnected = await checkMariaDBConnnection();
```

---

### MongoDB

**`checkMongoDBConnection(options?: CheckConnectionOptions): Promise<boolean>`**

Checks MongoDB connection.

```ts
import { checkMongoDBConnection } from '@hyperjumptech/db-connection-checker';

const isConnected = await checkMongoDBConnection();
```

---

### Postgres

**`checkPostgresConnection(options?: CheckConnectionOptions): Promise<boolean>`**

Checks Postgres connection.

```ts
import { checkPostgresConnection } from '@hyperjumptech/db-connection-checker';

const isConnected = await checkPostgresConnection();
```

---

### Redis

**`checkRedisConnection(options?: CheckConnectionOptions): Promise<boolean>`**

Checks Redis connection.

```ts
import { checkRedisConnection } from '@hyperjumptech/db-connection-checker';

const isConnected = await checkRedisConnection();
```

## Acknowledgments

1. [mariadb-connector-nodejs](https://github.com/mariadb-corporation/mariadb-connector-nodejs)
2. [node-mongodb-native](https://github.com/mongodb/node-mongodb-native)
3. [node-postgres](https://github.com/brianc/node-postgres)
4. [node-redis](https://github.com/redis/node-redis)

## License

```txt
MIT License

Copyright (c) 2022 Hyperjump Technology

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```