wolfram-alpha-node

A JavaScript library for interfacing with the Wolfram Alpha API
Email me at gpsanant@gmail.com if you have questions.

Installation

npm i wolfram-alpha-node

Example Usage

const WolframAlphaAPI = require('wolfram-alpha-node');
const waApi = WolframAlphaAPI("your app id");
(async() => {
    try{
        console.log(await waApi.getFull('what is the parity of sine of x'))
        console.log(await waApi.getShort("who was the 16th president?"))
        console.log(await waApi.getSpoken("what is 2 plus 2"))
    }catch(e){
        console.log(e.message)
    }
})()

Test

npm test "your app id"