JSPM

mw-ocg-zimwriter

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q31316F
  • License GPLv2

Converts mediawiki collection bundles (as generated by mw-ocg-bundler) to ZIM files

Package Exports

  • mw-ocg-zimwriter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mw-ocg-zimwriter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mw-ocg-zimwriter

NPM

Build Status dependency status dev dependency status

Converts mediawiki collection bundles (as generated by mw-ocg-bundler) to ZIM files.

Installation

Node version 0.8 and 0.10 are tested to work.

Install the node package dependencies.

npm install

Install other system dependencies.

apt-get install unzip

Generating bundles

You may wish to install the mw-ocg-bundler npm package to create bundles from wikipedia articles. The below text assumes that you have done so; ignore the mw-ocg-bundler references if you have bundles from some other source.

Running

To generate a plaintext file named out.txt from the English (enwiki) wikipedia article "United States":

mw-ocg-bundler -o us.zip --prefix enwiki "United States"
bin/mw-ocg-zimwriter -o us.zim us.zip

For other options, see:

bin/mw-ocg-zimwriter --help

License

GPLv2

(c) 2014 by C. Scott Ananian