open-index/open-npm huggingface dataset:
npm package: @gmsoft/tiny-editor
Description: 富文本编辑器 react 组件
Latest version: 1.0.2

# tiny-editor

富文本编辑器 react 组件

## usage

```shell
yarn add @gmsoft/tiny-editor
```

```ts
/**
 * demo
 */
import React from 'react';
import TinyEditor, { TinyViewer } from '@gmsoft/tiny-editor';

export default () => {
  const [value, setValue] = React.useState('');
  return (
    <>
      <TinyEditor
        // 如果需要使用图片上传功能, 要求服务器端返回的数据中包含 url 字段，url 字段值为图片的 url
        uploadServer="https://demo.com/file"
        defaultValue="place input something"
        value={value}
        onChange={setValue}
      />
      <div>
        value:
        <TinyViewer>{value}</TinyViewer>
      </div>
    </>
  );
};
```

## usage 效果预览

![preview](https://s1.ax1x.com/2023/05/31/p9vRuge.jpg)
npm package: @gmsoft/tools
Description: a function library maybe u will use
Author: bddandelion
Latest version: 1.6.4

# @gmsoft/tools - gmsoft 公用方法集

[![NPM](https://img.shields.io/npm/v/@gmsoft/tools.svg)](https://www.npmjs.com/package/@gmsoft/tools)
[![DOWNLOAD](https://img.shields.io/npm/dt/@gmsoft/tools.svg)](https://www.npmjs.com/package/@gmsoft/tools)

## install

```

  yarn add @gmsoft/tools

```

## Api

[Api 文档](api.md)

## 更新日志

- ### 1.6.0
  2021-11-04
  - 🌟 新增 [getSimilarity](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getSimilarity)，传入两字符串，计算其相似度
- ### 1.5.3
  2020-6-18
  - 🐞 修改 moment 类型
- ### 1.5.2
  2020-6-18
  - 🐞 修改 [memo](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#memo)，添加泛型支持
- ### 1.5.1
  2020-6-18
  - 🌟 新增 [memo](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#memo)，创建一个会缓存 func 结果的函数
- ### 1.5.0
  2020-3-19
  - 🗑 废弃 
hash
 ，请使用 [\_.uniqueId](https://www.html.cn/doc/lodash/#_uniqueidprefix)
  - 🗑 废弃 
loopCall
 ，请使用 [\_.times](https://www.html.cn/doc/lodash/#_timesn-iteratee_identity)
  - 🗑 废弃 
nullArr
 ，请使用 [\_.fill(Array(len),null)](https://www.html.cn/doc/lodash/#_fillarray-value-start0-endarraylength)
- ### 1.3.0
  2020-3-19
  - 🌟 新增 [hash](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#hash)，传入参数对象，返回类 hash 字符串
  - 🌟 新增 [loopCall](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#loopCall)，循环调用数次，func
  - 🌟 新增 [nullArr](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#nullArr)，生成一定长度的，每个子项均为 null 的数组
- ### 1.2.2
  2020-3-11
  - 🐞 修改 [getTopRoot](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getTopRoot)，默认选中元素改为 #mount-root
- ### 1.2.1
  2020-3-10
  - 🌟 新增 [getTopRoot](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getTopRoot)，顶层窗口引用挂载节点
  - 🐞 修改 [getPopupContainer](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getPopupContainer)，触碰保底机制时返回 [getTopRoot](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getTopRoot) 的调用结果
- ### 1.2.0
  2020-3-9
  - 🌟 项目迁移到 `@gmsoft/tools`
  - 🌟 新增 [downloadFileByApi](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#downloadFileByApi)，新增 `business` 参数
- ### 1.1.2
  2020-2-27
  - 🐞 修复 [currency](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#currency)，修复负数时展示 bug
- ### 1.1.1

  2019-11-14

  - 🌟 新增 [validObjValue](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#validObjValue)，清理掉对象值为 null 或者 undefined 的属性
  - 🐞 修复 [getSearch](https://github.com/gmsoft-happyCoding/gmsoft-tools/blob/master/api.md#getSearch)，传入对象的值先做非空过滤，再行转换

- ### 1.1.0
  2019-10-29
  - 🗑 废弃 
useApiDownloadFile
 ，请使用 `downloadFileByApi`

## 参考资料

- [lodash](https://github.com/lodash/lodash)
- [moment](https://github.com/moment/moment)
- [decimal.js](https://github.com/MikeMcl/decimal.js)
- [ua-parser-js](https://github.com/faisalman/ua-parser-js)
npm package: @gmt/cli
Description: gmt-cli
Author: MagicWang @MagicWang
Latest version: 0.0.2

@gmt/cli
========

gmt-cli

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@gmt/cli.svg)](https://npmjs.org/package/@gmt/cli)
[![Downloads/week](https://img.shields.io/npm/dw/@gmt/cli.svg)](https://npmjs.org/package/@gmt/cli)
[![License](https://img.shields.io/npm/l/@gmt/cli.svg)](https://github.com/MagicWang/cli/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @gmt/cli
$ gmt COMMAND
running command...
$ gmt (-v|--version|version)
@gmt/cli/0.0.0 win32-x64 node-v10.16.3
$ gmt --help [COMMAND]
USAGE
  $ gmt COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`gmt hello [FILE]`](#gmt-hello-file)
* [`gmt help [COMMAND]`](#gmt-help-command)
* [`gmt new [PROJECTNAME]`](#gmt-new-projectname)

## `gmt hello [FILE]`

describe the command here

```
USAGE
  $ gmt hello [FILE]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ gmt hello
  hello world from ./src/hello.ts!
```

_See code: [src\commands\hello.ts](https://github.com/MagicWang/cli/blob/v0.0.0/src\commands\hello.ts)_

## `gmt help [COMMAND]`

display help for gmt

```
USAGE
  $ gmt help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src\commands\help.ts)_

## `gmt new [PROJECTNAME]`

create new project

```
USAGE
  $ gmt new [PROJECTNAME]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -l, --lang=lang  [default: angular] which font framework will be use,angular|vue|react
```

_See code: [src\commands\new.ts](https://github.com/MagicWang/cli/blob/v0.0.0/src\commands\new.ts)_
<!-- commandsstop -->
npm package: @gmt/cli1
Description: @gmt/cli1 =========
Author: MagicWang @MagicWang
Latest version: 0.0.0

@gmt/cli1
=========



[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@gmt/cli1.svg)](https://npmjs.org/package/@gmt/cli1)
[![Downloads/week](https://img.shields.io/npm/dw/@gmt/cli1.svg)](https://npmjs.org/package/@gmt/cli1)
[![License](https://img.shields.io/npm/l/@gmt/cli1.svg)](https://github.com/MagicWang/cli1/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @gmt/cli1
$ gmt1 COMMAND
running command...
$ gmt1 (-v|--version|version)
@gmt/cli1/0.0.0 win32-x64 node-v10.16.3
$ gmt1 --help [COMMAND]
USAGE
  $ gmt1 COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`gmt1 hello [FILE]`](#gmt1-hello-file)
* [`gmt1 help [COMMAND]`](#gmt1-help-command)
* [`gmt1 new [PROJECTNAME]`](#gmt1-new-projectname)

## `gmt1 hello [FILE]`

describe the command here

```
USAGE
  $ gmt1 hello [FILE]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ gmt1 hello
  hello world from ./src/hello.ts!
```

_See code: [src\commands\hello.ts](https://github.com/MagicWang/cli1/blob/v0.0.0/src\commands\hello.ts)_

## `gmt1 help [COMMAND]`

display help for gmt1

```
USAGE
  $ gmt1 help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src\commands\help.ts)_

## `gmt1 new [PROJECTNAME]`

create new project

```
USAGE
  $ gmt1 new [PROJECTNAME]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -l, --lang=lang  [default: angular] which font framework will be use,angular|vue|react
```

_See code: [src\commands\new.ts](https://github.com/MagicWang/cli1/blob/v0.0.0/src\commands\new.ts)_
<!-- commandsstop -->