Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an option to 'pretty print' the json output #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shakyShane
Copy link

Calling JSON.stringify(wp.complete()); limits the output options & this PR would allow the user to specify a number to force 'pretty printing' of JSON.

Although the options param is directly passed to the YUI lib, they don't use the spaces property so I chose to use that, instead of attempting to add a third argument the parser method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant