fapi-client
TypeScript icon, indicating that this package has built-in type declarations

0.3.6 • Public • Published

fClient

A REST client that wraps the fAPI image manipulation API.

Quality Gate Status
gh_pages deps
npm_version npm_downloads
discord

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.

Readme

Keywords

none

Package Sidebar

Install

npm i fapi-client

Weekly Downloads

0

Version

0.3.6

License

MIT

Unpacked Size

1.47 MB

Total Files

93

Last publish

Collaborators

  • jacher