All Projects → saqqdy → clipboard-parser

saqqdy / clipboard-parser

Licence: ISC license
剪贴板解析器,支持解析@RequestParam/@ApiModelProperty接口定义代码、Word、Excel以及其他表格类数据

Programming Languages

typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to clipboard-parser

Vbasync
Cross-platform tool to synchronize macros from an Office VBA-enabled file with a version-controlled folder
Stars: ✭ 98 (+553.33%)
Mutual labels:  excel, word
Ariawase
Ariawase is free library for VBA cowboys.
Stars: ✭ 185 (+1133.33%)
Mutual labels:  excel, word
Npoi
A .NET library for reading and writing Microsoft Office binary and OOXML file formats.
Stars: ✭ 1,751 (+11573.33%)
Mutual labels:  excel, word
Magicodes.ie
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
Stars: ✭ 1,198 (+7886.67%)
Mutual labels:  excel, word
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (+53.33%)
Mutual labels:  excel, word
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (+433.33%)
Mutual labels:  excel, word
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+15466.67%)
Mutual labels:  excel, word
Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (+133.33%)
Mutual labels:  excel, word
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (+1466.67%)
Mutual labels:  excel, word
Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (+1460%)
Mutual labels:  excel, word
Superfileview
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式
Stars: ✭ 1,115 (+7333.33%)
Mutual labels:  excel, word
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (+346.67%)
Mutual labels:  excel, word
Documentbuilder
ONLYOFFICE Document Builder is powerful text, spreadsheet, presentation and PDF generating tool
Stars: ✭ 61 (+306.67%)
Mutual labels:  excel, word
Evilclippy
A cross-platform assistant for creating malicious MS Office documents. Can hide VBA macros, stomp VBA code (via P-Code) and confuse macro analysis tools. Runs on Linux, OSX and Windows.
Stars: ✭ 1,224 (+8060%)
Mutual labels:  excel, word
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+6620%)
Mutual labels:  excel, word
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+13166.67%)
Mutual labels:  excel, word
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+21713.33%)
Mutual labels:  excel, word
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+20640%)
Mutual labels:  excel, word
Office Ribbonx Editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
Stars: ✭ 205 (+1266.67%)
Mutual labels:  excel, word
flutter filereader
Flutter实现的本地文件(pdf word excel 等)查看插件,非在线预览
Stars: ✭ 101 (+573.33%)
Mutual labels:  excel, word

clipboard-parser

支持解析@RequestParam/@ApiModelProperty 接口定义代码、Word、Excel 以及其他表格类数据

NPM version Codacy Badge build status Test coverage npm download gzip License

Sonar

完整文档请查阅: API 完整文档

安装

# 通过npm安装
npm install -S clipboard-parser

# 或者通过yarn安装
yarn add clipboard-parser

使用

# vue页面
<template>
    <textarea @paste="handlePaste"></textarea>
</template>
<script>
import clipboardParser from 'clipboard-parser'
export default {
    methods: {
        handlePaste(e) {
            const result = clipboardParser(e)
            // ...
        }
    }
}
</script>

示例

1. 解析@RequestParam 格式代码

输入

@RequestParam("rowCount")
@ApiParam(required = false, name = "rowCount", value = "每页容量大小",defaultValue = 10)
    String rowCount,
@RequestParam(value = "current")
@ApiParam(required = false, name = "current", value = "开始页",defaultValue = 1)
    String current,

返回结果

[
    {
        "type": "String",
        "required": true,
        "name": "rowCount",
        "defaultValue": 10,
        "description": "每页容量大小"
    },
    {
        "type": "String",
        "required": true,
        "name": "current",
        "defaultValue": 1,
        "description": "开始页"
    }
]

2. 解析@ApiModelProperty 格式代码

输入

@ApiModelProperty(value = "id主键", required = true)
    private String id;
@ApiModelProperty(value = "名称")
    private String name;

返回结果

[
    {
        "required": true,
        "type": "String",
        "description": "id主键",
        "defaultValue": "",
        "name": "id"
    },
    {
        "required": true,
        "type": "String",
        "description": "名称",
        "defaultValue": "",
        "name": "name"
    }
]

3. 解析 word/excel/网页 table 等表格类数据

输入

参数 说明 类型 可选值 必填 默认
type 分支类型 String feature/bugfix/support false 当前分支类型
name 分支名称 String - false 当前分支名称

返回结果

[
    {
        "name": "type",
        "type": "String",
        "required": false,
        "defaultValue": "",
        "description": "分支类型"
    },
    {
        "name": "name",
        "type": "String",
        "required": false,
        "defaultValue": "",
        "description": "分支名称"
    }
]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].