0.0.0-beta.7 • Published 2 years ago

fugapedia.js v0.0.0-beta.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Introduction

Node.js module to easily interact with the Fugapedia API
The Fugapedia supports only the Russian language, so that all information below will be in Russian.

Установка

npm

npm i fugapedia.js

Yarn

yarn add fugapedia.js

pnpm

pnpm add fugapedia.js

Пример использования

JavaScript

const Fugapedia = require('fugapedia.js');

const client = new Fugapedia.Client().setKey('myAPIKey');

const main = async () => {
  const article = await client.getArticle('Кирилл_Баранов', { limit: 100 });
  console.log(article);

  const url = Fugapedia.makeImageURL('Syjalo', 'jpeg');
  console.log(url);
}
main();

TypeScript

import { Client, makeImageURL } from 'fugapedia.js';

const client = new Client().setKey('myAPIKey');

const main = async () => {
  const article = await client.getArticle('Кирилл_Баранов', { limit: 100 });
  console.log(article);

  const url = makeImageURL('Syjalo', 'jpeg');
  console.log(url);
}
main();