Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zastinian/strange-api-wrapper

Strange API Wrapper
https://github.com/zastinian/strange-api-wrapper

api filters generators image strange strange-api strange-api-wrapper strangebot wrapper

Last synced: 19 days ago
JSON representation

Strange API Wrapper

Awesome Lists containing this project

README

        

## Installation

```
npm i strange.api

pnpm i strange.api

yarn add strange.api
```

## [Contributing](/.github/CONTRIBUTING.md)

## Nodejs Version

- `v18.0.0` or higher

## Links

- [Discord](https://discord.gg/aXvuUpvRQs) [Hedystia Discord]
- [Discord_Bot](https://hedystia.com) [Hedystia Bot]
- [Strange_Support](https://discord.gg/Pt97u5MkAr) [Strange Support]
- [Strange_Docs](https://strangeapi.hostz.me/docs) [Strange Docs]
- [Strange_Api_Key](https://strangeapi.hostz.me/dashboard) [Strange Dashboard]
- [Strange_Api_Key](https://discord.gg/Pt97u5MkAr) [Strange Support]
- [Npm_Docs](https://docs.hedystia.com/strange/start) [Strange.Api docs]

## Example

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