Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leocornus/gotmw

MediaWiki client on top of Got.js and many others
https://github.com/leocornus/gotmw

Last synced: 5 days ago
JSON representation

MediaWiki client on top of Got.js and many others

Awesome Lists containing this project

README

        

# gotmw.js
Node.js MediaWiki client on top of Got.js and many others.

Try our wiki-agent to see how it works.

```bash
# git clone to local
cd gotmw
npm install
node sample/wiki-agent.js
```

Here is a quick demo:

![wiki agent demo](/docs/wiki-agent-demo.gif)

By default, all examples is load from file **sample/action-examples.json**.
You could prepare your own examples and store it in your local.
Then using the command **loadexamples** to load your own examples.

Here is a simple query action to wikipedia.org:

```json
{
"description":"Example to show how to get a login token",
"action": "query",
"meta": "tokens",
"type": "login"
},
```