open-index/open-npm huggingface dataset:
npm package: @peanut.trade/feeno-sdk
Description: ## Installing
Latest version: 0.1.5

# FeeNo SDK

## Installing

Using npm:
```bash
$ npm install @peanut.trade/feeno-sdk
```

Using yarn:
```bash
$ yarn add @peanut.trade/feeno-sdk
```

## Examples

### Basic integration
```js
const ethers = require('ethers');
const { FeeNo } = require('@peanut.trade/feeno-sdk');

const chainId = 5; // 1 - mainnet, 5 - goerli (testnet)
const feeNo = new FeeNo(chainId);

const provider = new ethers.providers.InfuraProvider(chainId, "c0ce38826bf344708eff40ec84130fa9");

const demoWallet1 = new ethers.Wallet("6d5d157ad116ff71f75dc48dd678ca0f54d7d9af864a45f6d14cd4b579af4ac3", provider);
const demoWallet2 = new ethers.Wallet("b95de9da803db6367af3366037f0e7790e53dd811b95a639548420ca738f11e7");

(async () => {
    const supportedTokens = await feeNo.getTokens();
    console.log("Supported tokens:", supportedTokens);

    const estimateParams = {
        "transactionType": "transfer", // Supported types  https://peanut-trade.github.io/feeno-sdk/enums/TransactionType.html
        "transactionBody": {           // and their bodies https://peanut-trade.github.io/feeno-sdk/modules.html#TransactionBody
            "addressTo": demoWallet2.address,
            "amount": 1,
            "tokenContractAddress": "0xc9d7e158d07965c661fd3421dc5db1176856dfb5"
        },
        "addressFrom": demoWallet1.address,
        "erc20TokenToPayFee": "0xc9d7e158d07965c661fd3421dc5db1176856dfb5",
        "feePayer": "sender" // sender | receiver
    }

    console.log("estimation...");
    const feeNoRequest = await feeNo.createFeenoRequest(estimateParams, demoWallet1);
    //feeNoRequest is an instance of FeeNoApiRequests

    console.log("sending...");
    const submitResponse = await feeNoRequest.send({
        exType: "cexSwap", // dexSwap | cexSwap
        speed: "medium"    // fast | medium | slow
    });

    console.log("Result:", submitResponse);
})()
```

### Example of using Metamask
```js
import ethers  from 'ethers';
import { FeeNo }  from '@peanut.trade/feeno-sdk';

const feeNo = new FeeNo(chainId);

async function sendTransaction () {
    try {
        if (typeof  window.ethereum !== undefined) {
            await window.ethereum.enable()
            const provider = new ethers.providers.Web3Provider(window.ethereum); 
            const feeNoRequest = await feeNo.createFeenoRequest(estimateParams, demoWallet1);
            return await feeNoRequest.send({ exType: "cexSwap", speed: "medium"});
        } else {
            throw new Error("No injected web3 found")
        }
    } catch (e) {
        console.log(e)
        throw Error(e.message)
    }

    return false;
}
```

### Get transaction status
```js
    const statusResponse = await feeNoRequest.status();
```

### Cancel transaction
```js
    feeNoRequest.cancel();
```

## Commands

This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.

To do a one-off build, use `npm run build` or `yarn build`.

## [Documentation](https://peanut-trade.github.io/feeno-sdk/index.html)
npm package: @peanut429/excalidraw
Description: Excalidraw as a React component
Latest version: 1.0.0

# Excalidraw

**Excalidraw** is exported as a component to directly embed in your projects.

## Installation

You can use `npm`

```bash
npm install react react-dom @excalidraw/excalidraw
```

or via `yarn`

```bash
yarn add react react-dom @excalidraw/excalidraw
```

After installation you will see a folder `excalidraw-assets` and `excalidraw-assets-dev` in `dist` directory which contains the assets needed for this app in prod and dev mode respectively.

Move the folder `excalidraw-assets` and `excalidraw-assets-dev` to the path where your assets are served.

By default it will try to load the files from [`https://unpkg.com/@excalidraw/excalidraw/dist/`](https://unpkg.com/@excalidraw/excalidraw/dist)

If you want to load assets from a different path you can set a variable `window.EXCALIDRAW_ASSET_PATH` depending on environment (for example if you have different URL's for dev and prod) to the url from where you want to load the assets.

#### Note

**If you don't want to wait for the next stable release and try out the unreleased changes you can use `@excalidraw/excalidraw@next`.**

## Dimensions of Excalidraw

Excalidraw takes _100%_ of `width` and `height` of the containing block so make sure the container in which you render Excalidraw has non zero dimensions.

### Demo

[Try here](https://codesandbox.io/s/excalidraw-ehlz3).

## Integration

Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/integration)

## API

Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api)

## Contributing

Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/contributing)
npm package: @peanutfe/cli
Description: cli
Author: xhonker
Latest version: 0.0.17

#### EXPLAIN

- （ [] ）表示它们是可选的，或带有尖括号（ <> ）表示它们是必需的
- `<project-name>`为 `pages` 下面的项目 支持 N 层嵌套
- example
  - pages/ad1/test // dev `yarn start ad1/test`
  - pages/ad1/test/test1 // dev `yarn start ad1/test/test1`

#### new page

```
peanut-cli-service new <pc | h5> <project-name> // new a page
```

#### dev

```
peanut-cli-service start <project-name> // run a page
```

#### build

```
peanut-cli-service build <project-name>  // build
peanut-cli-service build <project-name> [-p,--public] // build and publish
```
npm package: @peanutfe/cli-service
Description: webpack cli service dev
Author: xhonker
Latest version: 0.0.16

#### CONFIG

- default config file in the root `fe.config.js`
- support params

  | `name`           | `type`     | `default`     | `describe`         |
  | ---------------- | ---------- | ------------- | ------------------ |
  | `output`         | `String`   | `./dist`      | output dir         |
  | `publicPath`     | `String`   | `./`          | public url         |
  | `source`         | `String`   | `./pages`     | source pages dir   |
  | `pageConfigName` | `Sting`    | `deploy.json` | page deploy config |
  | `webpackChain`   | `Function` | `()=>{}`      | webpack chain      |
  | `afterBuild`     | `Function` | `()=>{}`      | after build hook   |

- example

```js
// fe.config.js
module.exports = {
  source: './pages',
  output: './dist',
  publicPath: 'https://cdn.aliyun.com/test' || './', // support cdn or root deploy
};
```
npm package: @peanutfe/cli-shared-utils
Description: utils
Author: xhonker
Latest version: 0.0.15

#### USAGE

> yarn add @peanutfe/cli-shared-utils

```js
import { log } from '@peanutfe/cl-shared-utils';
log.error('blabla');
```
#### interface

```ts
export declare const rmrf: (path: string) => void;
interface ILog {
    error: (...arg: any) => void;
    success: (...arg: any) => void;
    info: (...arg: any) => void;
    waning: (...arg: any) => void;
}
export declare const log: ILog;
export declare const clearConsole: () => boolean;
export declare const getLocalIP: () => string[];
export declare function getGlobalConfig(): IProjectConfig;
export declare const requirePkg: (pkgPath: string, defaultValue: any) => any;
export declare const getPageConfig: (pageDir: string) => IPageConfig;
export declare const getHash: (text: string, len?: number) => string;
export declare const is: {
    fun: (a: any) => boolean;
    obj: (a: any) => boolean;
    arr: (a: any) => boolean;
};

```
npm package: @peaque/create-framework
Description: Initialize a @peaque/framework application
Author: Peaque
Latest version: 1.0.0

# @peaque/create-framework

Official scaffolding tool for [Peaque Framework](https://peaque.dev/framework) applications.

## Usage

### With NPM

```bash
npm create @peaque/framework@latest
```

### With Yarn

```bash
yarn create @peaque/framework
```

### With PNPM

```bash
pnpm create @peaque/framework
```

### With a project name

```bash
npm create @peaque/framework@latest my-app
cd my-app
npm run dev
```

## Features

- **Interactive CLI** - User-friendly prompts powered by @clack/prompts
- **Package Manager Detection** - Automatically detects and uses npm, yarn, or pnpm
- **Multiple Templates** - Choose from different starter templates
- **Fast Setup** - Get started in seconds with zero configuration
- **Smart Defaults** - Includes .env setup, .gitignore, and more
- **Validation** - Ensures project names are valid and directories don't exist

## What's Included

Each scaffolded project includes:

- **TypeScript** configuration with strict mode
- **Tailwind CSS** with PostCSS setup
- **File-based routing** structure
- **API routes** example
- **Environment variables** template (.env.example)
- **Git ignore** configuration
- **README** with quick start guide

## Templates

### Basic

A simple starter template with:
- Home page example
- API route example
- Tailwind CSS styling
- Static assets support

More templates coming soon!

## Development

To work on this package:

```bash
# Install dependencies
npm install

# Run in development mode
npm run dev

# Build the package
npm run build

# Test the CLI
npm test
```

## Project Structure

```
@peaque/create-framework/
├── src/
│   └── cli.ts          # Main CLI logic
├── templates/
│   └── basic/          # Basic template
│       ├── src/
│       │   ├── api/
│       │   ├── pages/
│       │   ├── public/
│       │   └── styles.css
│       ├── .env.example
│       ├── .gitignore
│       ├── package.json
│       ├── README.md
│       └── tsconfig.json
├── dist/               # Built output
├── package.json
└── tsconfig.json
```

## Publishing

This package is designed to be used with `npm create`, which requires publishing to npm registry.

```bash
npm run build
npm publish --access public
```

## License

MIT

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
npm package: @peaque/framework
Description: The last javascript framework ever to be needed - A modern, full-stack TypeScript framework with file-based routing, React, and Tailwind CSS
Author: Peaque AB
Latest version: 2.10.0

# Peaque Framework

Peaque is a modern, full-stack TypeScript web framework that combines file-based routing with React, built-in Tailwind CSS, and advanced Hot Module Replacement (HMR). Built from the ground up for developer productivity with zero configuration.

See https://peaque.dev/framework for guides and documentation.