1.0.7 • Published 6 years ago

node-ugoira v1.0.7

Weekly downloads
1
License
BSD-2-Clause
Repository
-
Last release
6 years ago

download ugoira and merge up to webp.

Installation

  1. download libwebp (^1.0.0) from https://github.com/webmproject/libwebp
  2. unzip bin to ./lib/libwebp_(osx|linux|win64|32/)
  3. install this package on package manager.
import Ugoira from 'node-ugoira';

// it's a great art! look at here -> https://www.pixiv.net/member_illust.php?mode=medium&illust_id=70727676
const ugoira = new Ugoira(70727676);
// you need to get refresh token first
// from pixiv api package likes 'pixiv-api-client', 'pixiv-app-api' things...
const out1 = await ugoiraw.initUgoira(refreshToken);
console.log(out1);
/*
  {
    extractedPath: string,
    downloadedFile: string
  }
*/

const out2 = await (await ugoiraw.toWebp()).toAnimated();
console.log(out2);
/*
  {
    outFilePath: string,
    status: string (10[0|1]\n@Message...@)
  }
*/
1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago