Socket
Socket
Sign inDemoInstall

node-wikipedia

Package Overview
Dependencies
87
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-wikipedia

Simple wrapper for MediaWiki API


Version published
Weekly downloads
13
decreased by-13.33%
Maintainers
1
Install size
6.29 MB
Created
Weekly downloads
 

Readme

Source

node-wikipedia

Node.js wrapper for the Wikipedia API

Build Status

#Installation

npm install node-wikipedia

#Demo

var wikipedia = require("node-wikipedia");

wikipedia.page.data("Clifford_Brown", { content: true }, function(response) {
	// structured information on the page for Clifford Brown (wikilinks, references, categories, etc.)
});

wikipedia.revisions.all("Miles_Davis", { comment: true }, function(response) {
	// info on each revision made to Miles Davis' page
});

wikipedia.categories.tree(
	"Philadelphia_Phillies",
	function(tree) {
		//nested data on the category page for all Phillies players
	}
);

#Philosophy

The MediaWiki API is wonderfully permissive and horribly documented. This is a lightweight wrapper. In addition to providing a basic interface for making HTTP requests to the API, it bundles some requests so that one needn't bother with pagination and so forth.

#Under the Hood dial.js makes API requests, accepting parameters as an object, options as an object, and a callback.

#License This script is provided free and open-source under the MIT license. If you use it, you are politely encouraged to link to this repo.

Keywords

FAQs

Last updated on 07 Aug 2015

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc