New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wikiscript

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikiscript

MediaWiki API client.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Autowiki

A zero-dependency mediawiki API client for JavaScript.

GitHub npm

Description

This library allows to query and perform actions on MediaWiki-based wikis. You can query page lists, edit pages, delete them, upload files, and any action that MediaWiki supports through its API.

This project is actively evolving. Although the API is expected to remain stable and focus mostly in finding edge-cases or supporting other API actions, breaking changes may occur until 1.0. Some types haven't been verified to match the actual API response; if you find any error, please submit an issue. The current version does not handle errors, but it is intended to do so in a future version.

Features

  • Use all common query modules (like listing all pages or getting a list of page's categories).
  • Zero dependencies.
  • Written in TypeScript.

Installation

npm install wikiscript
yarn add wikiscript

Usage

import { Wiki } from 'wikiscript';

function main() {
  const wiki = new Wiki('https://mywiki.com/api.php');
  const allpages = await wiki.allpages({
    apfrom: 'A',
    aplimit: 'max',
    apto: 'B',
  });
  const titles = allpages.map(page => page.title);
  console.log(titles);
}

Calling the previous function will print in the console a list of page titles.

License

GNU General Public License version 3.

Keywords

api

FAQs

Package last updated on 07 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts