simple-mw-api
TypeScript icon, indicating that this package has built-in type declarations

8.0.1 • Public • Published

SimpleMWApi.js

A simplified shim for the mw.Api interface.

How to Use

Easy as...

const myApi = new SimpleMWApi();
var content = await myApi.readPage(title);
myApi.writePage(title, newContent, summary).then(...);

Purpose

This library isn't intended to replace, or compete with, mw.Api. It's just here to enable gadget or userscript developers to easily get started with some really basic functionalities.

Installing as an NPM module

npm i simple-mw-api

Licence

Public domain (CC-0)

  • May you do good and not evil.
  • May you find forgiveness for yourself and forgive others.
  • May you share freely, never taking more than you give.

Readme

Keywords

none

Package Sidebar

Install

npm i simple-mw-api

Weekly Downloads

1

Version

8.0.1

License

0BSD

Unpacked Size

28.4 kB

Total Files

20

Last publish

Collaborators

  • rileyvel