-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Shorter NODE_TAPE_OBJECT_PRINT_DEPTH
env variable
#534
Comments
env vars have a high chance of conflicting, so it’s usually best if they’re long. While this feedback may have been helpful when it was added, I’m pretty sure it’s not worth the complexity of having two env vars for the same thing - which one wins? What if they’re different? etc. |
Yeah, understandable. |
The env var is meant as a universal shortcut, that shouldn’t need to be typed often - the thing expected for common use is the |
The normal behavior of tape is great. I want the normal size to be small. Just, sometimes, I need to inspect a deep and complex case. Where I can either dive into the code and add a In any case, my usage seems to be an edge case so I’ll close this. |
A very useful feature for me is
NODE_TAPE_OBJECT_PRINT_DEPTH
, because I work with a lot of large JSON objects, added in #418. and #420. However, it’s a rather long name. I find myself reading the docs, CMD+F fordepth
, and copy pasting that line a lot because I can’t seem to remember it.Would it be of interest to add a shorter alias for that flag? Perhaps
NODE_TAPE_DEPTH
orTAPE_DEPTH
or so? I can make the PR.The text was updated successfully, but these errors were encountered: