open-index/open-npm huggingface dataset:
npm package: @sskim18/sdk-coin-avaxp
Description: BitGo's SDK coin library for avaxp coin
Author: BitGo SDK Team
Latest version: 0.0.2-avaxp-1

# BitGo sdk-coin-avaxp

SDK coins provide a modular approach to a monolithic architecture. This and all BitGoJS SDK coins allow developers to use only the coins needed for a given project.

## Installation

All coins are loaded traditionally through the `bitgo` package. If you are using coins individually, you will be accessing the coin via the `@bitgo/sdk-api` package.

In your project install both `@bitgo/sdk-api` and `@bitgo/sdk-coin-avaxp`.

```shell
npm i @bitgo/sdk-api @bitgo/sdk-coin-avaxp
```

Next, you will be able to initialize an instance of BitGoAPI through `@bitgo/sdk-api` instead of via `bitgo`.

```javascript
import { BitGoAPI } from '@bitgo/sdk-api';
import { AvaxP, TavaxP } from '@bitgo/sdk-coin-avaxp';

async function init() {
  const bitgoapi = new BitGoAPI({ env: 'test' });
  bitgoapi.register('avaxp', AvaxP.createInstance);
  bitgoapi.register('tavaxp', TavaxP.createInstance);
  return bitgoapi;
}

async function main() {
  const bitgoapi = await init();
  const avaxp = bitgoapi.coin('avaxp');
  const tavaxp = bitgoapi.coin('tavaxp');
}
```

## Development

Most of the coin implementations are derived from `@bitgo/sdk-core`, `@bitgo/statics`, and coin specific packages. These implementations are used to interact with the BitGo API and BitGo platform services.

You will notice that the basic version of common class extensions have been provided to you and must be resolved before the package build will succeed. Upon initiation of a given SDK coin, you will need to verify that your coin has been included in the root `tsconfig.packages.json` and that the linting, formatting, and testing succeeds when run both within the coin and from the root of BitGoJS.
npm package: @sskmy1024y/trpc-swr-client
Description: [tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks
Author: Sanna Jammeh
Latest version: 1.0.3-beta.0

# trpc-swr

[tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks

Documentation: https://trpc-swr.vercel.app/

## Installation

```sh
npm install @trpc-swr/client
# Peer deps
npm install swr @trpc/client @trpc/server
```

## Usage

```tsx
// profile.tsx
import { trpc } from "./trpc";

const Profile = (props: { userId: string }) => {
  const { data, isLoading } = trpc.user.get.useSWR({ id: props.userId });

  return (
    <div>
      Name:{" "}
      {!data && isLoading
        ? "loading..."
        : data
        ? data.name
        : "User does not exist"}
    </div>
  );
};
```
npm package: @sskmy1024y/trpc-swr-infinite
Description: [tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks
Author: Sanna Jammeh
Latest version: 1.0.3-beta.0

# @trpc-swr/infinite

[tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks

Documentation: https://trpc-swr.vercel.app/infinite-queries

```tsx
// profile.tsx
const { data, error, size, setSize } = infinite.user.getMany.useCursor(
  { limit: 3 },
  (index, previousPageData) => {
    return previousPageData?.nextCursor;
  }
);

const users = data?.pages.flat() || [];
const hasMore = data?.at(-1).nextCursor !== null;

return (
  <div>
    {users.map((user) => (
      <div key={user.id}>{user.name}</div>
    ))}
    {hasMore && (
      <button
        onClick={() => {
          setSize(size + 1);
        }}
      >
        Load more
      </button>
    )}
  </div>
);
```
npm package: @sskmy1024y/trpc-swr-next
Description: [tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks
Author: Sanna Jammeh
Latest version: 1.0.3-beta.0

# @trpc-swr/next

[tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks

A Next.js helper library for using SWR with tRPC (pages dir).

Documentation: https://trpc-swr.vercel.app/server-side/setup#using-nextjs

## Usage

If you're using Next.js, you can use the `withTRPCSWR` helper function. Then in your pages you must return the `swr` props from `getServerSideProps` or `getStaticProps`.

In `pages/_app.tsx`

```tsx
import { withTRPCSWR } from "@trpc-swr/next";

const MyApp = ({ Component, pageProps }) => {
  return <Component {...pageProps} />;
};

export default withTRPCSWR({})(MyApp);
```

In a page

```tsx
import { createSSG } from "server/ssg";

export default function Page() {
  const { data } = trpc.users.byId.useSWR({ id: 1 });

  return <div>{data!.name}</div>; // data is always defined since it's fetched on the server
}

export const getServerSideProps = () => {
    const trpc = createSSG();

    // You can await this function if you want to wait for the data to be fetched. It's not necessary though.
    trpc.users.byId.fetch({ id: 1 });
    return {
        props: {
            swr: await trpc.dehydrate();
        }
    }
}
```
npm package: @sskmy1024y/trpc-swr-ssr
Description: [tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks
Author: Sanna Jammeh
Latest version: 1.0.3-beta.0

# @trpc-swr/ssr

[tRPC](https://trpc.io/)-ified [SWR](https://swr.vercel.app/) hooks

Framework agnostic SSR for trpc-swr.

Documentation: https://trpc-swr.vercel.app/server-side/next-13-appdir

## Usage

Define a helper function to create a new `trpc` ssr instance for each request.

In `server/ssr.ts`

```tsx
import { createProxySSGHelpers } from "@trpc-swr/ssr";
import { appRouter } from "server/appRouter";

export const createSSR = () => {
  return createProxySSGHelpers({
    router: appRouter,
    ctx: {},
  });
};
```

In a page

```tsx
import { createSSR } from "<trpc-ssr-location>";

const getData = () => {
  const rsc = createSSR();

  return rsc.home.getVersion.fetch();
};

export default async function HomePage() {
  const version = await getData();

  return <div>{version}</div>;
}
```
npm package: @ssl-lib/consul
Description: Lib to load values from 'Consul by HashiCorp'
Author: Sillas S. Leal
Latest version: 1.0.118

# consul

[![Build Status](https://travis-ci.org/sillasleal/consul.svg?branch=master)](https://travis-ci.org/sillasleal/consul.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/sillasleal/consul/badge.svg?branch=master)](https://coveralls.io/github/sillasleal/consul?branch=master) [![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors) [![GitHub Workflow Status](https://github.com/sillasleal/consul/workflows/Node.js%20Package/badge.svg)](https://github.com/sillasleal/consul/actions) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sillasleal/consul/blob/master/LICENSE)

Lib de carregamento de valores do consul

## Em desenvolvimento
npm package: @ssl-lib/js-extras
Author: Sillas S. Leal
Latest version: 1.1.122

# js-extras [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sillasleal/js-extras/blob/master/LICENSE) [![Build Status](https://travis-ci.org/sillasleal/js-extras.svg?branch=master)](https://travis-ci.org/sillasleal/js-extras) [![Coverage Status](https://coveralls.io/repos/github/sillasleal/js-extras/badge.svg?branch=master)](https://coveralls.io/github/sillasleal/js-extras?branch=master)
npm package: @ssmidge/discord-invites-tracker
Description: Track the invites in your servers to know who invited who and with which invite!
Author: Androz2091
Latest version: 1.2.3

# [Discord Invites Tracker](https://npmjs.com/@androz2091/discord-invites-tracker)

Track the invites in your servers to know who invited who and with which invite!

## Installation

```sh
npm install @androz2091/discord-invites-tracker
# or
yarn add @androz2091/discord-invites-tracker
```

## Example

```js
const Discord = require('discord.js');
const client = new Discord.Client({
    intents: [Discord.GatewayIntentBits.Guilds]
});

const InvitesTracker = require('@androz2091/discord-invites-tracker');
const tracker = InvitesTracker.init(client, {
    fetchGuilds: true,
    fetchVanity: true,
    fetchAuditLogs: true
});

tracker.on('guildMemberAdd', (member, type, invite) => {

    const welcomeChannel = member.guild.channels.cache.find((ch) => ch.name === 'welcome');

    if(type === 'normal'){
        welcomeChannel.send(`Welcome ${member}! You were invited by ${invite.inviter.username}!`);
    }

    else if(type === 'vanity'){
        welcomeChannel.send(`Welcome ${member}! You joined using a custom invite!`);
    }

    else if(type === 'permissions'){
        welcomeChannel.send(`Welcome ${member}! I can't figure out how you joined because I don't have the "Manage Server" permission!`);
    }

    else if(type === 'unknown'){
        welcomeChannel.send(`Welcome ${member}! I can't figure out how you joined the server...`);
    }

});

client.login(process.env.TOKEN);
```

**Different join types available:**

* `normal` - When a member joins using an invite and the package knows who invited the member (`invite` is available).
* `vanity` - When a member joins using an invite with a custom URL (for example https://discord.gg/discord-api).
* `permissions` - When a member joins but the bot doesn't have the `MANAGE_GUILD` permission.
* `unknown` - When a member joins but the bot doesn't know how they joined.

## Ignoring guilds

```js
const InvitesTracker = require('@androz2091/discord-invites-tracker');
const tracker = InvitesTracker.init(client, {
    fetchGuilds: true,
    fetchVanity: true,
    fetchAuditLogs: true,

    // servers that contain "nude" in their name will not be processed
    exemptGuild: (guild) => guild.name.includes('nude')
});
```

## Active guilds

```js
const InvitesTracker = require('@androz2091/discord-invites-tracker');
const tracker = InvitesTracker.init(client, {
    fetchGuilds: true,
    fetchVanity: true,
    fetchAuditLogs: true,

    // only servers that contain "happy" in their name will be processed
    activeGuild: (guild) => guild.name.includes('happy')
});
```
npm package: @ssmidge/nodejs-extensions
Description: Nodejs Util Extensions for Nodejs Types, Classes and Functions.
Author: Tomato6966
Latest version: 1.0.0

# nodejs-extensions
Utility Prototype Extensions for Nodejs Classes and Types

# Features
✔️ Only adds Extensions, if not existing yet.
✔️ Types
✔️ Fast - uses quickest functions for nodejs [check how we determined](https://github.com/Tomato6966/nodejs-extensions/blob/main/doc/fastestLoop.md)
✔️ Optional Function to extend Prototypes


## Why not lodash or underscore?

This package is not ment to replace lodash, nor underscore, indeed, it uses lodash too!
 - It is ment to implement more use-case specific, readable utility functions.

# Import it

Typescript and ESM:

```js
import _Utils from "nodejs-extensions";
```

Common-JS way:

```js
const _Utils = require("nodejs-extensions");
```

# Extend prototype to make your work easier!

```js
import _Utils from "nodejs-extensions";

_Utils.ExtendPrototypes({
    improveForEach: false, //if true, then it will use _Utils.loopOver instead of Array.forEach and overwride it 
});
// then you can do stuff like:

const summed = [1, 2, 3, "a"].sumNumbersOnly();

const cleared = ["a", "a", "b"].removeDuplicates();
```

## Don't wanna extned the prototypes?

Then import `"nodejs-extensions/safe"` to not overwride the prototypes

```js
import _Utils from "nodejs-extensions/safe";

const summed = _Utils.removeDuplicates(["a", "a", "b"]);

const cleared = _Utils.sumNumbersOnly([1, 2, 3]);
```


# Function-Methods List

If you use it without the Array extension, aka by _Utils.function(), then always add the input (array, object, etc.) upfront!
- e.g: `_Util.shuffle([1, 2, 3, 4, 5, 6]);`
- e.g: `_Util.chunks(["a", "b", "c", "d", "e"], 2);`

## Arrays

[Jump](#Array-Methods) to the Arrays overview

 - [shuffle](#array-shuffle)
 - [first](#array-first)
 - [last](#array-last)
 - [chunks](#array-chunks)
 - [sum](#array-sum)
 - [sumNumbersOnly](#array-sumNumbersOnly)
 - [removeNullish](#array-removeNullish)
 - [removeUndefined](#array-removeUndefined)
 - [removeEmptyStrings](#array-removeEmptyStrings)
 - [removeNaNs](#array-removeNaNs)
 - [remove](#array-remove)
 - [removeDuplicates](#array-removeDuplicates)
 - [merge](#array-merge)
 - [keepStrings](#array-keepStrings)
 - [keepNumbers](#array-keepNumbers)
 - [keepBoolean](#array-keepBoolean)
 - [keepObjects](#array-keepObjects)
 - [keepArrays](#array-keepArrays)
 - [loopOver](#array-loopOver)
 - [promiseMap](#array-promiseMap)
 - [promiseLoopOver](#array-promiseLoopOver) 
 - [removeUntil](#array-removeUntil) 

## Array-Methods

### Array-shuffle

Creates a new mixed up (shuffled) array.
 - @Returns
    - (Array): Returns the new mixed array
```js
const shuffled = [1, 2, 3].shuffle();
console.log(shuffled); // [3, 1, 2]
```
npm package: @ssml-utilities/core
Description: SSMLユーティリティの中核機能を提供するパッケージです。SSML（Speech Synthesis Markup Language）の解析、DAG（有向非巡回グラフ）の構築、および基本的なユーティリティ機能を提供します。
Author: Jabelic
Latest version: 1.4.0

# @ssml-utilities/core

SSMLユーティリティの中核機能を提供するパッケージです。SSML（Speech Synthesis Markup Language）の解析、DAG（有向非巡回グラフ）の構築、および基本的なユーティリティ機能を提供します。

## インストール

```bash
npm install @ssml-utilities/core
```

または

```bash
pnpm add @ssml-utilities/core
```

## 主な機能

- SSMLの解析
- DAG（有向非巡回グラフ）の構築と操作
- Result型を使用したエラーハンドリング

## 使用方法

### SSMLの解析

```typescript
import { parseSSML } from "@ssml-utilities/core";

const ssml = "<speak>Hello <emphasis>world</emphasis>!</speak>";
const result = parseSSML(ssml);

if (result.ok) {
  const dag = result.value;
  // DAGを使用した処理
}
```

### DAGの操作

```typescript
import { SSMLDAG } from "@ssml-utilities/core";

const dag = new SSMLDAG();
const nodeResult = dag.createNode("element", "speak", "<speak>");

if (nodeResult.ok) {
  const node = nodeResult.value;
  // ノードを使用した処理
}
```

## API

### DAGNode型

DAGのノードを表す型です：

```typescript
interface DAGNode {
  id: string;
  type: "root" | "element" | "text" | "attribute";
  name?: string;
  value?: string;
  children: Set<string>;
  parents: Set<string>;
}
```

### Result型

エラーハンドリングのための型を提供します：

```typescript
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
```

## デバッグ

DAGの構造を確認するためのデバッグ機能を提供しています：

```typescript
import { debugParseSSML } from "@ssml-utilities/core";

const debug = debugParseSSML("<speak>Hello, world!</speak>");
console.log(debug); // DAG構造を表示
```


## ライセンス

MITライセンスの下で公開されています。詳細は[LICENSE](https://github.com/Jabelic-Works/ssml-utilities/blob/master/LICENCE)ファイルを参照してください。

## 関連パッケージ

- [@ssml-utilities/editor-react](https://github.com/Jabelic-Works/ssml-utilities/tree/master/packages/editor-react)
- [@ssml-utilities/highlighter](https://github.com/Jabelic-Works/ssml-utilities/tree/master/packages/highlighter)
npm package: @ssml-utilities/highlighter
Description: SSML syntax highlighter for the SSML Utilities toolkit
Author: Jabelic
Latest version: 0.4.0

# SSML Highlighter

SSML Highlighter は、Speech Synthesis Markup Language (SSML)のシンタックスハイライトを提供するパッケージです。

## インストール

```bash
npm install @ssml-utilities/highlighter
```

## 使用方法

```typescript
import { ssmlHighlighter } from "@ssml-utilities/highlighter";
const ssml = "<speak>Hello <emphasis>world</emphasis>!</speak>";
const options = {
  classes: {
    tag: "ssml-tag",
    attribute: "ssml-attribute",
    attributeValue: "ssml-attribute-value",
    text: "ssml-text",
  },
};
const result = ssmlHighlighter.highlight(ssml, options);

if (result.ok) {
  console.log(result.value);
}
```

## オプション

`HighlightOptions`インターフェースで以下のオプションを設定できます：

```typescript
interface HighlightOptions {
  classes: {
    tag: string; // タグ要素の CSS クラス名
    attribute: string; // 属性名の CSS クラス名
    attributeValue: string; // 属性値の CSS クラス名
    text: string; // テキストコンテンツの CSS クラス名
  };
}
```

## デフォルトのスタイル

以下のような CSS を適用することで、基本的なハイライトスタイルを設定できます：

```css
.ssml-tag {
  color: #000fff;
}
.ssml-attribute {
  color: #ffa500;
}
.ssml-attribute-value {
  color: #008000;
}
.ssml-text {
  color: #000;
}
```

## 機能

- SSML タグのシンタックスハイライト
- 属性と属性値の区別
- HTML エスケープ処理
- エラーハンドリング

## エラーハンドリング

highlight メソッドは`Result`型を返します：

```typescript
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
```

エラーが発生した場合は、`ok: false`と`error`メッセージが返されます。

## 使用例

ネストされた SSML のハイライト：

```typescript
const complexSSML = (
  <speak>
    {" "}
    <prosody rate="slow" pitch="+2st">
      {" "}
      こんにちは、 <emphasis level="strong">世界</emphasis>！{" "}
    </prosody>
  </speak>
);
const result = ssmlHighlighter.highlight(complexSSML, options);
```

MIT ライセンスの下で公開されています。詳細は[LICENSE](https://github.com/Jabelic-Works/ssml-utilities/blob/master/LICENCE)ファイルを参照してください。