Skip to content

Add a new function in order to be able to set the number of spaces for indentation#5

Open
jdespatis wants to merge 1 commit intovkiryukhin:masterfrom
jdespatis:indent-func
Open

Add a new function in order to be able to set the number of spaces for indentation#5
jdespatis wants to merge 1 commit intovkiryukhin:masterfrom
jdespatis:indent-func

Conversation

@jdespatis
Copy link

This new function doesn't change current behavior of pretty-data,
but let user change this setting with the following code:

var pretty = require('pretty-data').pd;
pretty.indent(4);

@jdespatis
Copy link
Author

@vkiryukhin If you feel this PR is not complete, do not hesitate to tell me, so that I can add those things to make the merge possible

The aim of this PR is to let current behavior unchanged, and add the possibility for the developer to tune the number of spaces for indentation

Do not hesitate to give your feedback
Thanks for your lib

@jdespatis
Copy link
Author

@vkiryukhin any feedback for this merge ?

@bjrmatos
Copy link

this is cool! @vkiryukhin can you merge it?

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.

2 participants