Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zastinian/strange-api-wrapper
- Owner: Zastinian
- Created: 2024-04-04T21:34:00.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-05-19T16:21:17.000Z (6 months ago)
- Last Synced: 2024-10-10T11:26:14.708Z (about 1 month ago)
- Topics: api, filters, generators, image, strange, strange-api, strange-api-wrapper, strangebot, wrapper
- Language: Rust
- Homepage: https://docs.hedystia.com/strange/start
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: .github/CONTRIBUTING.md
Awesome Lists containing this project
README
## Installation
```
npm i strange.apipnpm 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));
```