1.0.5 • Published 3 years ago
wikiarticle v1.0.5
WikiArticle
A package that let you read the article on Wikipedia.
Getting started
npm i WikiArticle
Docs
module
A main function of WikiArticle.
Parameter
- `Article Title`: Title of Article (Will fetch random article if it's not providing any title)
- `Languange`: Wikipedia Languange (Default: `en`)
Response
- `title` returns Article Name
- `result` returns Article result in Array
- `$` returns Cheerio's `$`
Example
const wikiarticle = require("wikiarticle");
wikiarticle("Batman", "en").then(res => {
//Shut to Logs if Found
console.log(res.result.join(" "));
})
Community
Any question or Doubt can join our Discord Server