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

NPM page needs updating #574

Open
joshuambg opened this issue Jan 29, 2023 · 0 comments
Open

NPM page needs updating #574

joshuambg opened this issue Jan 29, 2023 · 0 comments

Comments

@joshuambg
Copy link

joshuambg commented Jan 29, 2023

Describe the bug
The docs seem outdated.
https://www.npmjs.com/package/jscpd

To Reproduce
Docs say:
consoleFull - report about clones to console with blocks of code;
Command:
npx jscpd src --pattern '**/*.tsx' --reporters 'consoleFull'
Does not output 'consoleFull'

Expected behavior
Should display output as 'consoleFull'

To Reproduce
Docs say:
Default: ./report/
Command:
npx jscpd src -o --pattern '**/*.tsx' --reporters 'html'
Error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true)

Expected behavior
Should default to ./report/

Desktop (please complete the following information):

  • NodeJS Version v14.17.3
  • jscpd version 3.5.3

Additional context
Please check all commands and update docs, not just ones listed here. This is expected behavior? Make docs more clear. Thanks!

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

No branches or pull requests

1 participant