node-wolfram
node-wolfram copied to clipboard
Add an options argument to query
The pull request adds a news argument to query, so you can specify options instead of the default primary=true
. Options are formatted as an object, like this : {option: value, option: value}
.
This new argument is optional, if not defined it will default to {primary: true}
.
Thanks! Two things: the options should be URL-encoded, and the changes need to be tested. Could you add unit tests for the functionality?
:+1: Will this allow you to specify the output format that I want such as MathML for example?
@toymachiner62 If the output format can be specified via the query params then, in theory, yes. Outputting in a format other than XML would break response parsing, however.