UNPKG

nekosapi

Version:

Async wrapper for NekosAPI

38 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class NekosImage { id; url; artist; source; original; nsfw; categories; characters; createdAt; etag; size; mimetype; color; expires; dimensions; constructor(data) { this.id = data["id"]; this.url = data["url"]; this.artist = data["artist"]; this.source = data["source"]; this.original = data["original"]; this.nsfw = data["nsfw"]; this.categories = data["categories"]; this.characters = data["characters"]; this.createdAt = new Date(data["createdAt"]); this.etag = data["meta"]["eTag"]; this.size = data["meta"]["size"]; this.mimetype = data["meta"]["mimetype"]; this.color = data["meta"]["color"]; this.expires = data["meta"]["expires"]; this.dimensions = data["meta"]["dimens"]; } } exports.default = NekosImage; //# sourceMappingURL=NekosImage.js.map