fapi-client
v0.3.6
Published
A wrapper over the fAPI REST API.
Readme
fClient
A REST client that wraps the fAPI image manipulation API.
Install:
npm i fapi-client
Examples:
TypeScript:
import { Client } from 'fapi-client/JS/src/client'
import { writeFileSync } from 'fs';
const client = new Client({ auth: 'exampleKey' });
(async () => {
const result = await client.keemstar('https://fapi.dreadful.tech/images/logo.png');
writeFileSync('./output.png', result)
return 0
})()JavaScript:
const Client = require('fapi-client/JS/src/client').Client
const writeFileSync = require('fs').writeFileSync
const client = new Client({ auth: 'exampleKey' });
(async () => {
const result = await client.keemstar2('https://fapi.dreadful.tech/images/logo.png');
writeFileSync('./output.png', result)
return 0
})()Contributing
To contribute, open a PR with your requested changes. All changes should point to the dev branch - all PRs pointing to master will be closed.
Support
For support with this wrapper and fAPI in general, you can join the Discord server here.

