data-monster icon indicating copy to clipboard operation
data-monster copied to clipboard

Allow users to pass their own js-beautify option object for output formatting

Open sarahghp opened this issue 10 years ago • 3 comments

Anything here: https://www.npmjs.com/package/js-beautify#options

sarahghp avatar Mar 30 '15 15:03 sarahghp

How does someone input a tab for the --indent-char option?

I think having that option might be overkill. You could just have "use-spaces" or not. And allow them to set number of spaces.

What is the motivation for --comma-first ? I think comma first is "illegal" according to jslint...

Looks good! You should write up instructions for using it on some weird publicly available data set. (when you have time lol)

-H

On Mon, Mar 30, 2015 at 8:57 AM, Sarah Groff-Palermo < [email protected]> wrote:

Anything here: https://www.npmjs.com/package/js-beautify#options

— Reply to this email directly or view it on GitHub https://github.com/sarahgp/data-monster/issues/3.

haleystorm avatar Mar 30 '15 17:03 haleystorm

I think you would do \t for a tab, no?

Since I am calling js-beautify inside the writer file as the last step, in theory users could just call with an optional options object (say that five times fast) and I would just pass it through. But you are right I don't need to worry about it now. Gonna start adding issues here so I remember someday.

And directions are coming so soon! To make this: screen shot 2015-03-29 at 2 27 19 pm

sarahghp avatar Mar 30 '15 17:03 sarahghp

Neat!

On Mon, Mar 30, 2015 at 10:44 AM, Sarah Groff-Palermo < [email protected]> wrote:

I think you would do \t for a tab, no?

Since I am calling js-beautify inside the writer file as the last step, in theory users could just call with an optional options object (say that five times fast) and I would just pass it through. But you are right I don't need to worry about it now. Gonna start adding issues here so I remember someday.

And directions are coming so soon! To make this: [image: screen shot 2015-03-29 at 2 27 19 pm] https://cloud.githubusercontent.com/assets/1477362/6902591/e10a5fec-d6e2-11e4-90ee-c5ef0a7c0d78.png

— Reply to this email directly or view it on GitHub https://github.com/sarahgp/data-monster/issues/3#issuecomment-87767737.

haleystorm avatar Mar 30 '15 18:03 haleystorm