Socket
Book a DemoInstallSign in
Socket

wikiarticle

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikiarticle

A package that let you read the article on Wikipedia.

1.0.5
latest
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

wikipedia

FAQs

Package last updated on 21 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.