0.0.4 • Published 5 years ago
wikia v0.0.4
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
- Documentation for full documentation.
- Discord Server best way to contact me.
- Wikia API Documentation to see response body schemas, etc.
License
MIT