Generates resource bundles from mediawiki articles

npm install mw-ocg-bundler
8 downloads in the last month



Build Status dependency status dev dependency status

A mediawiki article spider tool.

This tool grabs all the dependencies for a given set of articles and creates a directory or zip file. The format is documented at


Node version 0.8 and 0.10 are tested to work.

Install the node package depdendencies with:

npm install

Install other system dependencies.

apt-get install zip


To generate a bundle for the wikipedia article en:United States:

bin/mw-ocg-bundler -o --prefix en --title "United States"

If you have a book specification (in the form of metabook.json and nfo.json files), use:

bin/mw-ocg-bundler -o -m metabook.json -n nfo.json

For other options, see:

bin/mw-ocg-bundler --help

There are several rendering backends which take bundles in this format as inputs. See mw-ocg-latexer, for instance, which generates PDFs of mediawiki articles via XeLaTeX, and mw-ocg-texter which generates plaintext versions of mediawiki articles.


Copyright (c) 2013 C. Scott Ananian

Licensed under GPLv2.

npm loves you