@parsify/wolfram
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i @parsify/wolfram

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

6.42 kB

Total Files

8

Last publish

Collaborators

  • akepinski