dijs / wiki

Wikipedia Interface for Node.js
MIT License
313 stars 62 forks source link

allow returning the whole result #137

Closed spencermize closed 3 years ago

spencermize commented 4 years ago

I wanted access to some of the other data Wikipedia provides (namely, the "snippet" field). I added an optional parameter "all" that will return the entire object. The default behavior remains as-is, so this should be a non-breaking change.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.06%) to 89.617% when pulling f3b5744b10ddac4bb5aab44f92a87fee8af8a943 on spencermize:master into 94188a0b2c251e1bd4f4d4e48f778d3957d7830e on dijs:master.

spencermize commented 4 years ago

It occurs to me that the docs also need updated; however, I'll wait to do that as you determine whether or not this is a feature you're interested in :)