@wikisophia/api-arguments-client
v0.7.0
Published
Javascript client for interacting with the Wikisophia Arguments API
Downloads
5
Readme
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: