JSPM

@parsify/wolfram

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10612F
  • License MIT

Parsify plugin for Wolfram|Alpha integration

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

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