{"push_id":1028485729,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"47dcade8fafbe8adec95d4af005b561fb49cd6aa","before":"64a8fddee7834ec8ffcd4d22aea0e42027988b86","commits":[{"sha":"47dcade8fafbe8adec95d4af005b561fb49cd6aa","author":{"email":"a477b4b8716691cde31852e513df06429342e35e@gmail.com","name":"Justin Searls"},"message":"Implements a configurable \"one-liner\" option\n\nFor some cases, the added newlines & indents of short objects and arrays\nmakes the output unwieldy. This commit adds a new option \n`inlineCharacterLimit`, which when set to a positive Number will \nreturn stringified object or array that, with padding/indents/newlines\nstripped would have a length less than `inlineCharacterLimit`.\n\nAs background, if I use stringify-object to print this argument list:\n\n`foo(obj1, obj2)` \n\nAnd `obj1` is `{a: 1, b: 2}` and `obj2` is `[1,2,3]`, and I try to \nprint a description of the invocation back to the user like this:\n\n`'foo(' + stringifyObject(obj1) + ', ' + stringifyObject(obj2) + ')'`\n\nThen what could be nice and terse as: \n\n`'foo({a: 1, b: 2}, [1,2,3])'`\n\nBut will instead print something containing a lot of new lines, making \nit hard to see the invocation being described.\n\nI'm running into this a lot developing\nhttps://github.com/testdouble/testdouble.js to have better output,\nbecause using terse object and array params to pass to test doubles is \ntremendously common, and I want to give users as best output as I can.","distinct":true,"url":"https://api.github.com/repos/searls/stringify-object-with-one-liners/commits/47dcade8fafbe8adec95d4af005b561fb49cd6aa"}]}