Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.03 KB

readme.md

File metadata and controls

48 lines (32 loc) · 1.03 KB

Installation

npm i strange.api

pnpm i strange.api

yarn add strange.api

Nodejs Version

  • v18.0.0 or higher

Links

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));