open-index/open-npm huggingface dataset:
npm package: @m-maillot/hexo-deployer-ftp-sync
Description: FTP deployer for Hexo
Author: Martial Maillot
Latest version: 1.0.3

# FTP deployer

[![NPM version](https://badge.fury.io/js/hexo-deployer-ftp-sync.svg)](https://www.npmjs.com/package/hexo-deployer-ftp-sync)

Deploy your site via FTP.

## Install

```
$ npm install hexo-deployer-ftp-sync --save
```

```
$ yarn add hexo-deployer-ftp-sync
```

## Usage

Edit settings.
````yaml
deploy:
  type: ftpsync
  host: <host>
  user: <user>
  password: <password>
  remote: [remote]
  port: [port]
  ignore: [ignore]
  verbose: [verbose]
````

| Option  | Description                               | Default                           |
|---------|-------------------------------------------|-----------------------------------|
| host    | Address of remote host                    |                                   |
| user    | Username                                  | Environment variable FTP_USER     |
| pass    | Password                                  | Environment variable FTP_PASSWORD |
| remote  | Root directory of remote host             | /                                 |
| port    | Port                                      | 21                                |
| ignore  | Ignore the files on either host or remote | false                             |
| verbose | Enable a verbose mode for debug           | false                             |

## Warning

This application will delete files and directories on the remote server to match the local machine. Use this application in production at your own risk.
npm package: @m-makara/vite-plugin-tree-shake-panda-css
Description: Vite Plugin to tree-shake project dependencies for Panda CSS during build
Author: Matej Makara
Latest version: 0.2.0

# DISCLAIMER

NOT INTENDED FOR PRODUCTION USE

## What is this plugin

This is just a POC to resolve all dependencies of a project and expose the dependencies via an environment variable for the `panda.config.ts` to consume in its `include` field.
Requires for the build process ro be ran twice. The first build resolves the dependencies and saves them to an ENV variable. The second build then reads the exposed dependencies in `panda.config.ts`.
Works only in **build** mode.

## Usage

### vite.config.ts

```typescript
import { defineConfig } from "vite";
import { treeShakePandaCss } from "@m-makara/vite-plugin-tree-shake-panda-css";

export default defineConfig({
  //...other config options
  plugins: [
    //...other plugins
    treeShakePandaCss({
      //envName -- optional. Name of the environment variable where the resolved dependencies are. Defaults to __TREE_SHAKE_PANDA_DEPENDENCIES__
      //include -- optional. PicoMatch pattern of files that should be included in dependencies. Defaults to "**/*.{js,jsx,ts,tsx}".
      //exclude -- optional. PicoMatch pattern of files that should be excluded from dependencies. Defaults to "node_modules/**/*".
    }),
  ],
});
```

### panda.config.{js,mjs,ts}

```typescript
import { defineConfig } from "@pandacss/dev";
import * as process from "process";

export default defineConfig({
  //...other config
  include:
    env.NODE_ENV === "development"
      ? ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"]
      : //Resolve and tree-shake only in production builds
        JSON.parse(env["__TREE_SHAKE_PANDA_DEPENDENCIES__"]),
});
```
npm package: @m-materials/com-grid
Description: 下拉table组件
Latest version: 1.0.1

# ComGrid

@m-materials/com-grid

下拉table组件

## API

| 参数名     | 说明                                                                                 | 必填 | 类型   | 默认值 | 备注 |
| --------- | ------------------------------------------------------------------------------------| ---- | ----- | ------ | ---- |
| columns   |列表属性配置,详情参见 antd 的[columns](https://ant.design/components/table-cn/#Column)属性| true | object|        |      |
| form      |参考 antd 的[Form](<https://ant.design/components/form-cn/#Form.create(options)>)组件  | false | object|        |      |
| afterSelect|选择数据行后触发该事件                                                  | false| (item: T, index: number)  |      |      |
| disabled    |组件失效状态                                                                         | false  | boolean |  false|      |
| showSearch  |显示快速搜索                                                                         | false  | boolean |  false|      |
| searchProperties|搜索接口数据属性配置                                                 | false  | string\[] | \['code', 'name'] |      |
| dataSource  |静态数据源                                                                         | false  | object\[] |       |      |
| defaultValue|默认值                                                                            | false  | string |       |      |
| store  | 数据接口对象,参考[配置项](#StoreProps                                                     | false  | object |       |      |
| width  | 下拉数据面板默认宽度                                                                      | false  | number |       |      |
| field  | 与Reader中的参数对应，可将其参数名称转为对应名称。                              | false | string[] |      | 一般用于form表单中获取多个自定义名称参数|
| reader | 下拉参数读取设置                                                              | false  | number |      | 一般用于form表单中获取多个自定义名称参数|

### StoreProps

| 参数     | 说明                 | 类型            | 默认值 | 版本 |
| -------- | -------------------- | --------------- | ------ | ---- |
| params   | 接口请求参数         | object          | -      |      |
| type     | 接口请求类型         | 'GET' \| 'POST' | GET    |      |
| url      | 接口请求地址         | string          | -      |      |
| autoLoad | 初始化时自动获取数据 | boolean         | false  |      |

### Reader

| 参数  | 说明                                         | 类型      | 默认值 | 版本 |
| ----- | -------------------------------------------- | --------- | ------ | ---- |
| data  | 截取的数据节点                               | string    | -      |      |
| field | ComboGrid 属性 field 映射,属性名必须一一对应 | string\[] | -      |      |
| name  | 显示的属性名,ComboList 属性 name 映射        | string    | -      |      |
npm package: @m-materials/form-item
Description: 基于antd中form表单，加入了自定义组件，以简化代码为模板。
Latest version: 1.0.0

# FormItem

@m-materials/form-item

基于 antd 中 form 表单，加入了自定义组件，以简化代码为模板。

当前组件基于 antd 4.x
在 4.x 中已经废弃了 fom.createForm() 、 getFieldDecorator 等 api。为了方便统一获取 form 属性在 FormRow 中已经内置了 form，可以通过：
this.formRef = React.createRef()
进行获取

## API


## Form
接收antd 4.x 系列中Form所有参数[Form配置项](https://ant.design/components/form-cn/#Form)


| 参数名        | 说明                        | 必填    | 类型   | 默认值      | 备注        |
| -------------| -------------------------  | ------ | ------ | ---------- | ---------- |
| ref          | 通过ref获取form实例          | false   | React.createRef() | 无         |            |
| name         | form实例名                 | false   | string | 无         |            |
| span         | 子元素宽度，span={24}每行一个元素 | false   | string | 8      |            |
| idDetail     | 全局disabled属性            | false  | boolean| false         |            |




## Form.Item
| 参数名        | 说明                        | 必填    | 类型   | 默认值      | 备注        |
| -------------| -------------------------  | ------ | ------ | ---------- | ---------- |
| code         | code                       | true   | string | 无         |            |
| label        | label（名称）                | true   | string | 无         |            |
| initialValue | 默认值                      | false   | string | 无         |            |
| disabled     | disabled属性                | false  | boolean| 无         |            |
| options      | ComGridItem、ComTree、SelectItem、RadioGroupItem用数据源[配置项](#OptionProps)| false  | object | 无         |            |
| span         | 修改行宽                    | false  | Number  | 无         |            |
| formLayout   | 单独修改每行labelCol、 wrapperCol布局| false  | Number  | 无         |            |



## OptionProps

| 参数名        | 说明                        | 必填    | 类型   | 默认值      | 备注        |
| -------------| -------------------------  | ------ | ------ | ---------- | ---------- |
| name         | 选项名称                     | true   | string | 无         |            |
| code         | 选项值value                 | true   | string | 无         |            |
npm package: @m-materials/i-grid-yon-you
Description: 基于tinper-bee中ac-gridcn 二次封装
Latest version: 1.0.3

# IGridYonYou

@materials/i-grid-yon-you

基于tinper-bee中ac-gridcn 二次封装

## API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
| ------ | ---- | ---- | ---- | ------ | ---- |
|        |      |      |      |        |      |
npm package: @m-materials/info-tree
Description: 一种树状结构展示
Latest version: 1.0.0

# 展示树

@m-materials/info-tree

一种树状结构展示

### API

| 参数            | 说明                 | 类型          | 默认值 |
| --------------- | -------------------- | ------------- | ------ |
| myKey           | 树状节点 value       | string        | -      |
| myTitle         | 树状节点 name        | string        | -      |
| onSelect        | 点击后事件           | function(row) | -      |
| renderItemExtra | 树状节点后跟其他操作 | function(row) | -      |
| header          | 树形选择器头部       | object        | -      |
| store           | 远程加载数据         | object        | -      |
| data            | 本地加载数据         | array         | -      |

#### header

- 树转选择器头部配置
  默认将头部分为了左右两个部分

| 参数      | 说明               | 类型   | 默认值 |
| --------- | ------------------ | ------ | ------ |
| left      | 树形选择器头部左侧 | string | -      |


#### store

- 远程加载

| 参数   | 说明                                      | 类型   | 默认值 |
| ------ | ----------------------------------------- | ------ | ------ |
| url    | 远程加载地址（必填）                      | string | -      |
| option | 请求配置，包含 header，method（默认 get） | string | -      |

> **_注意_**：
npm package: @m-materials/request
Description: 请求工具
Latest version: 1.0.3

<!--
 * @Author: 刘治宏
 * @Date: 2023-02-27 20:10:42
 * @Description: 
 * @FilePath: /y-materials/components/Request/README.md
 * @LastEditTime: 2023-02-28 16:21:32
-->
# demo component

@m-materials/request

请求工具

基于umi-request进行封装

对umi-request进行再次封装，会通过localstorage.getItem("token") 获取本地token
npm package: @m-materials/simple-grid
Description: 一个自带分页以及查询的功能的Table组件
Latest version: 1.0.1


# SimpleGrid

@m-materials/simple-grid

一个自带分页以及查询的功能的Table组件

可以通过ref调用组织中的findByPage方法手动执行查询

## API

| 参数名          | 说明              | 必填     | 类型    | 默认值   | 备注   |
| -------------- | ---------------  | -------- | ------ | ------ | ---- |
| columns        | Table中columns    |必填      | Array  | 无      |      |      
| dataSource     | 本地传入数据        |非必填     | Array  | 无     | dataSource（本地数据）与store只用配置一个（远程请求）|      
| pagination     | 分页信息           |非必填     | Object  | {current:1,pageSize：15}|      |     
| store          | 远程数据配置        |非必填     | Object  | 无    |      |     
| position       | 分页位置           |非必填     | array   | ['bottomRight']    |      |     


## store 远程请求配置

| 参数名          | 说明              | 必填     | 类型    | 默认值   | 备注   |
| -------------- | ---------------  | -------- | ------ | ------ | ---- |
| url            | 请求地址           |必填      | string  | 无      |      |      
| method         | 请求方式           |非必填     | string | 'post'  | axios请求方式 |      
| params         | 请求时需要传入的额外参数|非必填   | Object  |      |      |     
| resMapping     | 响应数据映射        |非必填     | Object  | 无    |      |     


## resMapping 数据响应映射

- 不同的请求接口响应数据的封装形式可能不一致，但是无论何种形式组件最终需要pagination(分页信息) 、content（数据）
- resMapping 用于配置组件中的分页信息、以及数据应该取返回实体中的具体字段路径。

| 参数名          | 说明              | 必填     | 类型    | 默认值   | 备注   |
| -------------- | ---------------  | -------- | ------ | ------ | ---- |
| content        | 数据字段          |非必填     | object  |       |      |      
| current        | 当前页            |非必填     | string  | 'current'        |     |     
| total          | 总页数            |非必填     |  string | 'total'      |      |      
| pageSize       | 每页多少条         |非必填     | string  | 'pageSize'     |       |
npm package: @m-media/npm-cartes-io
Description: Official Cartes.io API client
Author: Ryan Sonshine
Latest version: 0.2.0

# npm-cartes-io

[![npm package][npm-img]][https://www.npmjs.com/package/@m-media/npm-cartes-io]
[![Build Status][build-img]][build-url]
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Code Coverage][codecov-img]][codecov-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

<!-- > My awesome module -->

## Install

```bash
npm i @m-media/npm-cartes-io
```

## Usage

```ts
import cartes from "npm-cartes-io";

// Maps
cartes.maps().get();
cartes.maps().with(['markers']).get();

cartes.maps().search(query);

const map = cartes.maps().create(data);

// You can create a map from a file (requires auth and permissions)
const map = cartes.maps().createFromFile(file);

cartes.maps(map.uuid).get();
cartes.maps(map.uuid).related().get();
cartes.maps(map.uuid, map.token).update(data);
cartes.maps(map.uuid, map.token).delete();

// Markers
cartes.maps(map.uuid).markers().get();

const marker = cartes.maps(map.uuid).markers().create(data);

// You can create markers from a file (requires auth and permissions)
const marker = cartes.maps(map.uuid).markers().createFromFile(file);


cartes.maps(map.uuid).markers(marker.id, marker.token).delete();

// Categories
cartes.categories().get();
cartes.categories().search(query);

// Authentication
cartes.setApiKey(apiKey);

// User
cartes.me().get();
cartes.me().update(data);

// Users
cartes.users().get();
cartes.users(userId).get();

```

[build-img]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml/badge.svg
[build-url]:https://github.com/ryansonshine/typescript-npm-package-template/actions/workflows/release.yml
[downloads-img]:https://img.shields.io/npm/dt/typescript-npm-package-template
[downloads-url]:https://www.npmtrends.com/typescript-npm-package-template
[npm-img]:https://img.shields.io/npm/v/typescript-npm-package-template
[https://www.npmjs.com/package/@m-media/npm-cartes-io]:https://www.npmjs.com/package/@m-media/npm-cartes-io
[issues-img]:https://img.shields.io/github/issues/ryansonshine/typescript-npm-package-template
[issues-url]:https://github.com/ryansonshine/typescript-npm-package-template/issues
[codecov-img]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template/branch/main/graph/badge.svg
[codecov-url]:https://codecov.io/gh/ryansonshine/typescript-npm-package-template
[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]:https://github.com/semantic-release/semantic-release
[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]:http://commitizen.github.io/cz-cli/
npm package: @m-o-z-g/gulp-svg2ttf
Description: Create a TTF font from an SVG font
Author: Nicolas Froidure
Latest version: 2.0.1

# gulp-svg2ttf

> Create a TTF font from an SVG font with [Gulp](http://gulpjs.com/).

Fixed version of [gulp-svg2ttf](https://github.com/nfroidure/gulp-svg2ttf).

[![NPM version](https://badge.fury.io/js/%40m-o-z-g%2Fgulp-svg2ttf.png)](https://npmjs.org/package/@m-o-z-g/gulp-svg2ttf) [![Dependency Status](https://david-dm.org/m-o-z-g/gulp-svg2ttf.png)](https://david-dm.org/m-o-z-g/gulp-svg2ttf) [![devDependency Status](https://david-dm.org/m-o-z-g/gulp-svg2ttf/dev-status.png)](https://david-dm.org/m-o-z-g/gulp-svg2ttf#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/github/M-O-Z-G/gulp-svg2ttf/badge.svg?branch=master)](https://coveralls.io/github/M-O-Z-G/gulp-svg2ttf?branch=master)

## Usage

First, install `gulp-svg2ttf` as a development dependency:

```shell
npm install --only=dev @m-o-z-g/gulp-svg2ttf
```

Then, add it to your `gulpfile.js`:

```javascript
const svg2ttf = require('@m-o-z-g/gulp-svg2ttf');

gulp.task('svg2ttf', function(){
	gulp.src(['fonts/*.svg'])
		.pipe(svg2ttf())
		.pipe(gulp.dest('fonts/'));
});
```

## API

### svg2ttf(options)

#### options.ignoreExt

Type: `Boolean`
Default value: `false`

Set to true to also convert files that doesn't have the .svg extension.

#### options.clone
Type: `Boolean`
Default value: `false`

Set to true to clone the file before converting him so that it will output the
 original file too.

#### options.timestamp
Type: `Number`
Default value: `Math.round(Date.now()/1000)`

Override the TTF font creation/modification date.

#### options.copyright
Type: `String`
Default value: Fontello ad or SVG Font copyright metadata.

Allows to set to your copyright informations.

#### options.version
Type: `String`
Default value: `undefined` (results in version `1.0`)

Allows to set the version number of the font. Needs to be in the format `Version <NUM>.<NUM>` (the `Version` prefix is optional).

#### options.description

Type: `String`
Default value: Generated by svg2ttf from Fontello project.

Allows to set to your description.

#### options.url

Type: `String`
Default value: `http://fontello.com`

Allows to set the vendor's url.

### Note

You may look after a full Gulp web font workflow, see
 [gulp-iconfont](https://github.com/m-o-z-g/gulp-iconfont)
  fot that matter.

### Contributing / Issues

Please submit SVG to TTF related issues to the
 [svg2ttf project](https://github.com/fontello/svg2ttf)
 on wich gulp-svg2ttf is built.

This repository issues is only for gulp and gulp tasks related issues.

You may want to contribute to this project, pull requests are welcome if you accept to publish under the MIT licence.
npm package: @m-onz/cohort
Description: connected
Author: m-onz
Latest version: 6.0.0


# cohort

p2p discovery layer, identity and messaging for node.js & the browser

## Events

### message

```js

var cohort = require('@m-onz/cohort')

var Peer = cohort('demo')

Peer.on('message', function (message) {
  console.log(Peer.peerID, '> ', message)
})

```

### Pass in identity

```js

var cid = require('@m-onz/cohort-id')

var Peer = cohort('demo', cid.id)

var Peer = cohort('demo', {
  publicKey: '',
  secretKey: '',
  boxPublicKey: '',
  boxSecretKey: ''
})

Peer.on('message', function (message) {
  console.log(Peer.peerID, '> ', message)
})

```

## Methods

### connected

```js

Peer.connected(function (e, peers) {
  console.log(peers)
})

```

### send

```js

Peer.send('peerID', 'hello peer!')

```

### broadcast

```js

Peer.broadcast('hello world!')

```

## Install

```sh
npm i @m-onz/cohort
```