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

Output to stdout, and pipe, rather than overwrite #4

Open
patarapolw opened this issue Oct 2, 2020 · 2 comments
Open

Output to stdout, and pipe, rather than overwrite #4

patarapolw opened this issue Oct 2, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@patarapolw
Copy link

patarapolw commented Oct 2, 2020

npx syzer -o > package.json
  • This makes it easy to edit programmatically with jq, or manually.
  • npx syzer, without -u, is not easy for grepping
  • PNPM does support package.yaml and package.json5

Also, piping in would also be beneficial, because of jq as well.

cat package.json | jq '.dependencies' | npx syzer
@rocktimsaikia rocktimsaikia added enhancement New feature or request help wanted Extra attention is needed labels Oct 3, 2020
@rocktimsaikia
Copy link
Owner

rocktimsaikia commented Oct 3, 2020

@patarapolw Agreed! Initially, when I first created this tool, I did not have much knowledge on how things work in nodejs but still, I didn't like the existing tools that do this job so just tried to build this quick module that does the job for me personally and I still do use it. Now looking back at the project I see that the project can be improved in various ways. I tried to write code for every little thing when there are many utility modules that can be used here.
I didn't think anyone would actually use it so was not planning to update it, now I see that it would be a good time to update the project.
In the meantime, PRs are welcome for this issue

@patarapolw
Copy link
Author

I implemented my thought (for another cli app) here. It will took a while to port to syzer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants