Package Exports
- @parsify/wolfram
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@parsify/wolfram) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Parsify Plugin Wolfram|Alpha
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/wolframUsage
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