Skip to content

derhuerst/wikipedia-edits-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wikipedia-edits-stream

A live stream of page edits on Wikipedia.

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install wikipedia-edits-stream

Usage

Refer to the manual on the edits format for more info.

const edits = require('.')

const e = edits()
e.on('data', console.log)
e.on('error', (err) => {
	console.error(err)
	process.exit(1)
})

setTimeout(() => e.close(), 10 * 1000)

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.