4.0.3 • Published 9 months ago

aig-for-nodejs v4.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

aig-for-nodejs

ArtifacterImageGenのNodeJS版。

Installation

npm i aig-for-nodejs

Usage

const { EnkaClient, Character } = require("enka-network-api")
const sharp = require("sharp")
const { generate } = require("aig-for-nodejs")

const enka = new EnkaClient({
    defaultLanguage: "jp"
})

// ユーザー情報をfetch
enka.fetchUser("8********").then(result => {
    let character = result.characters[0]
    return generate(character)
}).then(imageBuffer => {
    // sharpを使ってBufferを画像として保存
    sharp(imageBuffer).toFile("artifacter.png")
})
3.7.1

9 months ago

3.7.0

10 months ago

4.0.3

9 months ago

4.0.2

9 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.1

11 months ago

2.0.0

12 months ago