open-index/open-npm huggingface dataset:
npm package: @fv/rankit-widget
Description: This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0.
Latest version: 0.0.1

# Widget

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

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## 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: @fvaa/monitor
Description: Page monitor and page behavior operation architecture
Author: cevio
Latest version: 1.0.10

# @fvaa/monitor

通用的路由监听处理架构，它主要分两中模式：

- `hashchange` 传统hash路由模式
- `popstate` 基于html5路由模式

它能够快速为你创建路由监听，省去您的工作时间，同时保障质量和效率。

## Usage

从npm下载模块：

```bash
npm i @fvaa/monitor
```

在代码中使用

```typescript
import Monitor, { Request, Response } from '@fvaa/monitor';

// create instance
const createServer = Monitor({
  // prefix: '/api',
  event: 'hashchange'
});

// create server 
// and listen url redirection maps on start time.
createServer(
  async (req: Request, res: Response) => console.log(req, res)
).listen({
  '/': '/abc'
});
```

## Monitor.options

- `prefix` 指定当前路由前缀
- `event` 您期望使用的监听事件名 *hashchange* 或 *popstate* 默认：**hashchange**
- `error` 错误处理函数

错误处理函数可以这样这样写

```javascript
// ts type: error?(e: Error, req: Request, res: Response): void
Monitor({
  error(err, req, res) {
    console.log(err, req, res);
  }
})
```

## createServer

它用来处理请求变化时候的响应函数。它的参数即回调函数，每个回调函数必须是`async`函数。我们来看下它的ts定义：

```javascript
export type AsyncRequestPromiseLike<T> = (req: Request, res: Response) => Promise<T>;
// ...
(...fns: Array<AsyncRequestPromiseLike<void>>) => MonitorContext
```

所以我们可以这样使用

```javascript
createServer(
  async (req: Request, res: Response) => console.log(1, req, res),
  async (req: Request, res: Response) => console.log(2, req, res),
  async (req: Request, res: Response) => console.log(3, req, res),
  ...
)
```

## listen

在初始化页面的时候，我们可以通过定义一个`redirection map`来转接路由地址：

```javascript
createServer(...).listen({
  '/': '/abc',
  '/test': '/yyyyyy/123'
})
```

当我们当前的URL在`/`的时候，自动转换为`/abc`路由；当我们当前的URL在`/test`的时候，自动转换为`/yyyyyy/123`路由。

> 注意，此功能值在页面初始化时候有效。

## Response

我们提供3中交互方法：

- `redirect(url:string)` 为浏览器历史记录添加一条数据
- `replace(url:string)` 替换当前浏览器历史记录为新记录
- `reload()` 重载历史记录。

```javascript
await res.redirect('/test');
await res.replace('/test');
await res.reload();
```

# License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2018-present, yunjie (Evio) shen
npm package: @fvcoder/capacitor-audio-toggle
Description: Audio toggle
Author: Fernando Ticona
Latest version: 0.0.1

# @fvcoder/capacitor-audio-toggle

Audio toggle

## Install

```bash
npm install @fvcoder/capacitor-audio-toggle
npx cap sync
```

## API

<docgen-index>

* [`setSpeakerOn(...)`](#setspeakeron)
* [`reset()`](#reset)
* [`addListener('speakerOn', ...)`](#addlistenerspeakeron-)
* [`removeAllListeners()`](#removealllisteners)
* [Interfaces](#interfaces)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### setSpeakerOn(...)

```typescript
setSpeakerOn(data: { speakerOn: boolean; }) => Promise<void>
```

| Param      | Type                                 |
| ---------- | ------------------------------------ |
| **`data`** | <code>{ speakerOn: boolean; }</code> |

--------------------


### reset()

```typescript
reset() => Promise<void>
```

--------------------


### addListener('speakerOn', ...)

```typescript
addListener(eventName: 'speakerOn', listenerFunc: (data: { status: boolean; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
```

| Param              | Type                                                 |
| ------------------ | ---------------------------------------------------- |
| **`eventName`**    | <code>'speakerOn'</code>                             |
| **`listenerFunc`** | <code>(data: { status: boolean; }) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>

--------------------


### removeAllListeners()

```typescript
removeAllListeners() => Promise<void>
```

--------------------


### Interfaces


#### PluginListenerHandle

| Prop         | Type                                      |
| ------------ | ----------------------------------------- |
| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |

</docgen-api>
npm package: @fvcoder/cli
Description: Utilidades cli para Fernando Ticona
Author: Fernando Ticona
Latest version: 0.1.0

# @fvcoder/cli

Generador de proyectos para Fernando Ticona

## Instalación

### Global

```bash
npm install -g @fvcoder/cli
# o
pnpm add -g @fvcoder/cli
```

Después de la instalación global, puedes usar el comando `fvcoder` desde cualquier lugar:

```bash
fvcoder hello
```

### Con npx

Puedes ejecutar la CLI sin instalarla globalmente usando npx:

```bash
npx @fvcoder/cli hello
```

## Comandos

### hello

Comando de prueba que imprime "Hello World"

```bash
fvcoder hello
# o con npx
npx @fvcoder/cli hello
```

## Desarrollo

### Compilar

```bash
pnpm build
```

### Modo desarrollo (watch)

```bash
pnpm dev
```

### Probar localmente

Para probar el CLI localmente antes de publicarlo:

```bash
# En el directorio del paquete
pnpm link --global

# Ahora puedes usar el comando fvcoder
fvcoder hello
```

## Publicación

```bash
pnpm release
```
npm package: @fvictorio/hardhat-chai-matchers
Description: Hardhat utils for testing
Author: Nomic Foundation
Latest version: 2.0.7

[![npm](https://img.shields.io/npm/v/@nomicfoundation/hardhat-chai-matchers.svg)](https://www.npmjs.com/package/@nomicfoundation/hardhat-chai-matchers)

# Hardhat Chai Matchers

This plugin adds Ethereum-specific capabilities to the [Chai](https://chaijs.com/) assertion library, making your smart contract tests easy to write and read.

Check [its documentation](https://hardhat.org/hardhat-chai-matchers/docs) to learn more.

### Installation

We recommend using npm 7 or later. If you do that, then you just need to install the plugin itself:

```bash
npm install --save-dev @nomicfoundation/hardhat-chai-matchers
```

If you are using an older version of npm, you'll also need to install all the packages used by the plugin.

```bash
npm install --save-dev @nomicfoundation/hardhat-chai-matchers chai@4 @nomicfoundation/hardhat-ethers ethers
```

That's also the case if you are using yarn:

```bash
yarn add --dev @nomicfoundation/hardhat-chai-matchers chai@4 @nomicfoundation/hardhat-ethers ethers
```

### Usage

After installing it, add the plugin to your Hardhat config:

```js
require("@nomicfoundation/hardhat-chai-matchers");
```

Then you'll be able to use the matchers in your tests:

```js
expect(await token.totalSupply()).to.equal(1_000_000);

await expect(token.transfer(token, 1000)).to.be.revertedWith(
  "Cannot transfer to the contract itself"
);

await expect(token.transfer(recipient, 1000))
  .to.emit(token, "Transfer")
  .withArgs(owner, recipient, 1000);
```

### Known issues

#### Chaining Async Matchers

Currently, the following matchers do not support chaining:

- `reverted`
- `revertedWith`
- `revertedWithCustomError`
- `revertedWithoutReason`
- `revertedWithPanic`
- `changeEtherBalance`
- `changeEtherBalances`
- `changeTokenBalance`
- `changeTokenBalances`
- `emit` (with the only exception of chaining multiple `emit` matchers)

Which means you can't do:

```js
await expect(contract.f(...))
  .to.changeEtherBalance(...)
  .and.to.changeTokenBalance(...)
```

To work around this limitation, write separate assertions for each matcher:

```js
const tx = contract.f(...);
await expect(tx).to.changeEtherBalance(...)
await expect(tx).to.changeTokenBalance(...)
```

If you are interested in seeing an implementation of chaining for async matchers, please visit the GitHub issue [#4235](https://github.com/NomicFoundation/hardhat/issues/4235) and leave an upvote or comment.
npm package: @fvidi/core-utils
Description: [Fvidi] Core typescript utilities
Author: Optimism PBC
Latest version: 0.1.0

# @fvidi/core-utils

[![codecov](https://codecov.io/gh/ethereum-optimism/optimism/branch/develop/graph/badge.svg?token=0VTG7PG7YR&flag=core-utils-tests)](https://codecov.io/gh/ethereum-optimism/optimism)

## What is this?

`@fvidi/core-utils` contains the Optimistic Virtual Machine core utilities.

## Getting started

### Building and usage

After cloning and switching to the repository, install dependencies:

```bash
$ pnpm i
```

Use the following commands to build, use, test, and lint:

```bash
$ pnpm build
$ pnpm start
$ pnpm test
$ pnpm lint
```
npm package: @fvidi/sdk
Description: [Optimism] Tools for working with Optimism
Author: Optimism PBC
Latest version: 0.2.0


# @fvidi/sdk

[![codecov](https://codecov.io/gh/ethereum-optimism/optimism/branch/master/graph/badge.svg?token=0VTG7PG7YR&flag=sdk-tests)](https://codecov.io/gh/ethereum-optimism/optimism)

The `@fvidi/sdk` package provides a set of tools for interacting with Optimism.

## Installation

```
npm install @fvidi/sdk
```

## Docs

You can find auto-generated API documentation over at [sdk.optimism.io](https://sdk.optimism.io).

## Using the SDK

### CrossChainMessenger

The [`CrossChainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/sdk/src/cross-chain-messenger.ts) class simplifies the process of moving assets and data between Ethereum and Optimism.
You can use this class to, for example, initiate a withdrawal of ERC20 tokens from Optimism back to Ethereum, accurately track when the withdrawal is ready to be finalized on Ethereum, and execute the finalization transaction after the challenge period has elapsed.
The `CrossChainMessenger` can handle deposits and withdrawals of ETH and any ERC20-compatible token.
Detailed API descriptions can be found at [sdk.optimism.io](https://sdk.optimism.io/classes/crosschainmessenger).
The `CrossChainMessenger` automatically connects to all relevant contracts so complex configuration is not necessary.

### L2Provider and related utilities

The Optimism SDK includes [various utilities](https://github.com/ethereum-optimism/optimism/blob/develop/packages/sdk/src/l2-provider.ts) for handling Optimism's [transaction fee model](https://community.optimism.io/docs/developers/build/transaction-fees/).
For instance, [`estimateTotalGasCost`](https://sdk.optimism.io/modules.html#estimateTotalGasCost) will estimate the total cost (in wei) to send at transaction on Optimism including both the L2 execution cost and the L1 data cost.
You can also use the [`asL2Provider`](https://sdk.optimism.io/modules.html#asL2Provider) function to wrap an ethers Provider object into an `L2Provider` which will have all of these helper functions attached.

### Other utilities

The SDK contains other useful helper functions and constants.
For a complete list, refer to the auto-generated [SDK documentation](https://sdk.optimism.io/)