node-wolfram icon indicating copy to clipboard operation
node-wolfram copied to clipboard

Add an options argument to query

Open leops opened this issue 10 years ago • 3 comments

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}.

leops avatar Apr 23 '14 14:04 leops

Thanks! Two things: the options should be URL-encoded, and the changes need to be tested. Could you add unit tests for the functionality?

strax avatar Jun 08 '14 10:06 strax

:+1: Will this allow you to specify the output format that I want such as MathML for example?

toymachiner62 avatar Sep 30 '14 03:09 toymachiner62

@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.

strax avatar Oct 05 '14 16:10 strax