@parsify/wolfram

Parsify plugin for Wolfram|Alpha integration

Usage no npm install needed!

<script type="module">
  import parsifyWolfram from 'https://cdn.skypack.dev/@parsify/wolfram';
</script>

README

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