Neurotic Programmer Masquerade

    wikimedia-commons-file-path
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.1 • Public • Published

    wikimedia-commons-file-path

    Returns the image/thumbnail file path for Wikimedia Commons

    const commons = require('../build/wikimedia-commons-file-path');
    console.log(commons('File:Innsbruck.jpg'));
    // https://upload.wikimedia.org/wikipedia/commons/2/2a/Innsbruck.jpg
    console.log(commons('File:Innsbruck.jpg', 300 /*px*/));
    // https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Innsbruck.jpg/360px-Innsbruck.jpg

    To compute the MD5 hash, this library uses blueimp-md5.

    Install

    npm i wikimedia-commons-file-path

    DownloadsWeekly Downloads

    11

    Version

    2.1.1

    License

    ISC

    Unpacked Size

    104 kB

    Total Files

    14

    Last publish

    Collaborators

    • simon04