fetch-wikipedia-page-revision

0.1.0 • Public • Published

fetch-wikipedia-page-revision

Fetch a revision of a Wikipedia page as mobile HTML.

npm version build status ISC-licensed chat on gitter

Installing

npm install fetch-wikipedia-page-revision

Usage

const fetchPageRevision = require('fetch-wikipedia-page-revision')
 
const slug = 'Barack_Obama'
const revId = 792351024
 
fetchPageRevision(slug, revId)
.then(console.log)
.catch(console.error)

The Promise will resolve with a string of HTML.

Contributing

If you have a question or have difficulties using fetch-wikipedia-page-revision, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Package Sidebar

Install

npm i fetch-wikipedia-page-revision

Weekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • derhuerst