[go: up one dir, main page]

Page MenuHomePhabricator

Merge browser & nodejs barebone API library
Open, LowPublicFeature

Description

I wrote a very simple nodejs library for MediaWiki API - https://www.npmjs.com/package/mwapi
It works great for my very simple usecases, but obviously I would much rather merge it with other similar work, especially the mw api module we have for the browser.

Could someone with good knowledge of browserify/npm/... set up a package that can be used for both browser & node?

I think it should be:

  • promise based (plugable "promise" provider)
  • plugable "request" provider
  • a few minor utility functions should also be supplied by the running environment (I use underscore.js for nodejs, but I suspect it is too heavy for the few functions i need)