strange.api
v1.1.3
Published
Strange API Wrapper
Downloads
10
Maintainers
Readme
Installation
npm i strange.api
pnpm i strange.api
yarn add strange.api
Nodejs Version
v18.0.0
or higher
Links
- Discord [Hedystia Discord]
- Discord_Bot [Hedystia Bot]
- Strange_Support [Strange Support]
- Strange_Docs [Strange Docs]
- Strange_Api_Key [Strange Dashboard]
- Strange_Api_Key [Strange Support]
- Npm_Docs [Strange.Api docs]
Example
import { Buffer } from "node:buffer";
import Strange from "strange.api";
// or
const { Buffer } = require("node:buffer");
const Strange = require("strange.api");
process.loadEnvFile("./.env");
const api = new Strange(process.env.API_KEY);
const buf = api.generators.challenger({
image: process.env.IMAGE_URL,
silhouetted: true,
});
console.log(Buffer.from(buf));