0.0.4 • Published 5 years ago

wikia v0.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

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

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago