Skip to content
πŸ“– 🏷 Typed async/await query library for MediaWiki
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
build.sh
package-lock.json
package.json
release.sh
tsconfig.build.json
tsconfig.json
tslint.json

README.md

MW-Query

npm Build Status codecov CodeFactor NPM License

Example

import { queryMw } from 'mw-query';

queryMw(
    {
        apiUrl: 'https://en.wikipedia.org/w/api.php',
    }, {
        coordinates: {
            coprop: {
                type: true,
                dim: false,
            },
        },
        categories: {
            cllimit: 40,
        },
        redirects: {
            rdlimit: 'max',
        },
    }, ['London', 'Paris'],
).then((out) => {
    console.log('Got Data:', out);
});

Building

> ./build.sh

Testing

> npm t

License

MIT

You can’t perform that action at this time.