This package has been deprecated

Author message:

This package is outdated and used the /api/v1 rest api which is deprecated use the new MediaWiki api.php endpoint, there may be other wrappers for it.

wikia

0.0.4 • Public • Published

Wikia

A simple wrapper to interact with the Wikia API.

Install

npm install wikia

Usage

const Wikia = require("wikia");
 
// for http://miraculousladybug.wikia.com
const wikia = new Wikia({ wiki: "miraculousladybug" });
// Leave wiki empty for cross-wiki actions however some methods requires a wiki
 
// All methods returns a Promise
// you can eiher use it with .then(callback)
// or use async/await
// for this example we will create an annonymous async function to use await.
(async() => {
  const articles = await wikia.getTopArticles();
  console.log(articles);
 
  console.log(await wikia.getWikiData());
})();

Useful Links

License

MIT

/wikia/

    Package Sidebar

    Install

    npm i wikia

    Weekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    26.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • ravener