1.0.3 • Published 3 years ago

simple-zip-async v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

simple-zip-async

旨在简化前端下载打包流程

准备数据结构

参数类型描述
urlstring远端地址
filesarray要打包的文件
  • files

    参数类型描述
    namestring文件名
    binaryboolean二进制
    contentarray文本

content

数组元素中一项对应到文本到一行

[
  {
    "url": "https://xxxx/xxx/SouthCoast.jpg",
    "files": [
      {
        "name": "SouthCoast.jpg",
        "binary": true
      },
      {
        "name": "SouthCoast.txt",
        "binary": false,
        "content": [
          "图片ID:480",
          "图片标题:SouthCoast",
          "图片描述:塞里雅兰瀑布后的午夜太阳,冰岛南海岸附近"
        ]
      }
    ]
  }
]

使用

import simpleZip from "../dist/index";

simpleZip(jsonList);
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago