0.0.1 • Published 4 years ago

@parsify/wolfram v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Parsify Plugin Wolfram|Alpha

Build Status Coverage Status XO code style

About

This plugin adds 2 functions (w() and wolfram()), which can be used to retrieve results from Wolfram|Alpha:

w("population of Los Angeles")
wolfram("planet closest to the sun")

Install

$ npm install @parsify/core @parsify/math @parsify/wolfram

Usage

import Parsify from '@parsify/core';
import parsifyMathPlugin, {mathParser} from '@parsify/math';
import parsifyWolframPlugin from '@parsify/wolfram';
 
const parsify = new Parsify([
    parsifyCovid19Plugin(mathParser, {appId: 'EXAMPLE'}),
    parsifyWolframPlugin()
]);

Note: the plugin order is important!

API

parsifyWolframPlugin(parser, options?)

parser

Type: Parser

@parsify/math exported parser.

options

Type: object

Any of the options below.

appId

Type: string\ Default: process.env.APP_ID

Wolfram|Alpha APP ID.

License

MIT