node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


String to Wikimedia Commons URL converter

This module takes a file name of a Wikimedia Commons file and converts into the URL of the file itself, as Mediawiki installations have an odd directory structure.

  • commons(filename, ssl)

The first argument is the file name used on Wikimedia projects. The second is a boolean governing whether to return the HTTPS version of the image or not.

var commons = require('wmcommons')