@wikisophia/api-arguments-client

0.7.0 • Public • Published

Arguments API Javascript Client

A javascript client library for the Wikisophia Arguments API.

Usage

import newArgumentsClient from 'api-arguments-client';

const arguments = newArgumentsClient({
    url: "www.wikisophia.net",
    fetch: fetch,
});

arguments.save({
    premises: [
        "Wood floats in water.",
        "Ducks float in water.",
        "Objects which are the same weight will either both sink or both float in water.",
        "Objects with the same weight are made of the same material.",
        "She weighs the same as a duck.",
    ],
    conclusion: "She's made of wood.",
});

This library works from both the client and server, provided you can send it a fetch function. In environments that don't support this natively, you may need to Polyfill it.

See:

Readme

Keywords

none

Package Sidebar

Install

npm i @wikisophia/api-arguments-client

Weekly Downloads

3

Version

0.7.0

License

GPL-3.0

Unpacked Size

75.3 kB

Total Files

11

Last publish

Collaborators

  • wikisophia-admin