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

Ability to save report to file #257

Open
redben opened this issue Sep 18, 2017 · 5 comments · May be fixed by #532
Open

Ability to save report to file #257

redben opened this issue Sep 18, 2017 · 5 comments · May be fixed by #532

Comments

@redben
Copy link

redben commented Sep 18, 2017

It would be nice to have an option to just output the report to a file... json yaml or wharever.
One could obviously wrap npm-check and use its API (as per the readme) but may be something like npm-check --json seems better that yet another wrapper module.

@karfau
Copy link

karfau commented Feb 20, 2018

I just thought the same thing.
I would actually want to write a markdown report, but I think it wouldn't be to difficult to have both options.
I wonder if a PR for that has a chance of being merged?

@LinusU
Copy link
Collaborator

LinusU commented Feb 23, 2018

I wonder if a PR for that has a chance of being merged?

It has 👍

@stigperez
Copy link

A quick fix is to simply run npm-check > c:\output.txt but a more structured format would be nice :-)

@karfau
Copy link

karfau commented Sep 12, 2018

@stigperez I'm on unix and just tried that (again) and it was not working as expected for me, I guess the command is expecting since the command is expecting an interactive terminal, so it wouldn't write all the data into the file since ... maybe my shell was to small? so what do I do if I have more dependencies that haven an update then do fit on my screen...?

Also it doesn't end so I need to Ctrl+C to stop the process. Below is the content of the file after doing so:

�[?25l�[?25h�[?25l�[?25h�[?25l? Choose which packages to update. (Press <space> to select)
  
 Patch Update Backwards-compatible bug fixes.
❯◯ @types/hammerjs devDep                2.0.35   ❯  2.0.36   https://github.com
/DefinitelyTyped/DefinitelyTyped
 ◯ @types/i18next devDep                 8.4.4    ❯  8.4.5    https://github.com
/DefinitelyTyped/DefinitelyTyped
 ◯ @types/node devDep                    10.9.2   ❯  10.9.4   https://github.com
/DefinitelyTyped/DefinitelyTyped
 ◯ @types/react devDep                   16.4.12  ❯  16.4.14  https://github.com
/DefinitelyTyped/DefinitelyTyped
 ◯ @types/react-redux devDep             6.0.6    ❯  6.0.8    https://github.com
/DefinitelyTyped/DefinitelyTyped
(Move up and down to reveal more choices)�[41D�[41C

(moving the cursor up and down appends "the whole terminal screen" to the file...)

@drummerwolli
Copy link

+1 on markdown (or as an intermediate step json) support. we post the result of npm-check automatically to Github Enterprise, which basically works, but i would love to have some more customizing functions for the output, which is hard to do in its current form ..

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