1.1.0 • Published 10 months ago

anilist-3x3-generator v1.1.0

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

anilist-3x3-generator

NPM Version NPM Install Size NPM Downloads NodeJS library that generates a 3x3 grid based on the user's anilist profile using canvas.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

$ npm install anilist-3x3-generator

Usage

const generator = require('anilist-3x3-generator');
generator.generateAnimeGrid('JohnTanaka', { rows: 4, columns: 4, borderWidth: 5 }); //returns a canvas of a 4x4 with 5px width lines between the images

Parameters

ParameterTypeDescriptionDefault
userstringAnilist username. (required)
outputPathstringThe output path for saving the generated image.
base64boolIndicates whether to return the image in Base64 format. Returns a canvas object if false.false
rowsnumberNumber of rows in the image grid.3
columnsnumberNumber of columns in the image grid.3
borderWidthnumberBorder width.3
borderColourstringBorder colour."black"
imageWidthnumberImage width.230
imageHeightboolImage height.331
typestringFavorite category to use ("anime", "manga", "characters", "staff")"anime"
randomFavboolIndicates whether to shuffle favorite items.false

License

This project is licensed under the MIT License

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago