0.0.7 • Published 2 years ago

imgurl2zip v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Imgurl2zip可以將輸入的圖片網址下載下來並輸出成zip檔。

使用範例:

import { Component, OnInit } from '@angular/core';
import { Img2zip } from 'imgurl2zip';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
  constructor(private img2zip: Img2zip) { }

  ngOnInit(): void {
    this.process();
  }

  async process() {
    const zipName = 'name';
    const urlArr = ['https://picsum.photos/200/300', 'https://picsum.photos/200']
    await this.img2zip.getZip(zipName, urlArr);
  }
}

參數

folderName:輸出的zip檔案名稱,格式為字串 string

urls:欲下載的圖片網址,格式為字串陣列 string[]

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago