Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 629 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 629 Bytes

ImageServer-TS

Package for interacting with ImageServer, written in TypeScript

Installation

npm i --save @discorddungeons/iqlclient

Usage

Create a new client:

import { IQLClient } from 'iqlclient'

const client = new IQLClient("https://example.com")

Create and send a new query:

import { IQLClient, IQLQuery } from 'iqlclient'

const client = new IQLClient("https://example.com")

const query = new IQLQuery().loadImage("image-url", "imageName").returnImage("imageName")

client.send(query).then(image => {
	// Do stuff with the image blob
})