
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A lightweight module used for fetching content and data from Wikipedia using the Wikipedia REST API
$ npm install wiki-page
var wiki = require('wiki-page');
wiki.get({params}, callback)
wiki.fetch({
section: 'page',
type: 'summary',
title: 'orlando fl',
}, (data) => {
console.log(data);
});
section
: The section type in the Wikipedia REST API - 'page', 'data', 'feed', 'transform', etc.
type
: The content type - 'pdf', 'title', 'summary', 'html', 'media', 'metadata', 'references', 'mobile-html', 'related', 'random', 'pdf', 'data-parsoid', 'lint', 'onthisday', 'segments'
title
: The subject of the returned content - 'calico cat', 'german shepard' or 'ford falcon'
event
: For use in endpoints that require and event type - 'births', 'all', 'selected', 'deaths', 'events', 'holidays'
revision
: For use in endpoints that require a revision number - '3606853'
date
: For use in endpoints that require a date - '06/11' or '2012/05/12'
format
: For use in endpoints that require a format - 'title', 'html', 'summary', 'related', 'mobile-sections', 'mobile-sections-lead'
wiki.fetch({endpoint}, callback)
wiki.fetch({query: '/page/summary/orlando'}, (data) => {
console.log(data);
});
Clone the repo and run the test.js
file using $ node test
$ git clone git://github.com/waltir/wiki-page.git
$ cd wiki-page
$ npm install
$ node test
FAQs
A lightweight module used for fetching content and data from Wikipedia using the Wikipedia REST API
The npm package wiki-page receives a total of 2 weekly downloads. As such, wiki-page popularity was classified as not popular.
We found that wiki-page demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.