Found while reviewing docs in PR #30, not fixed there since it touches code samples in two separate files with the same content.
Files:
barcode-reader/general/check-current-version.md, around line 17
barcode-reader/web/debug/check-current-version.md, around line 30
npm –v dynamsoft-javascript-barcode
Two problems:
- That's an en dash (
–, U+2013) before v, not a hyphen — compare to the real hyphens in dynamsoft-javascript-barcode on the same line. Will fail if copy-pasted as-is.
- Even with a real hyphen,
npm -v <pkg> doesn't print a specific package's version — it prints npm's own version. The v10 section of the same file correctly uses npm show dynamsoft-barcode-reader version for this purpose; the v9-era command should probably use the equivalent npm show/npm list form instead.
Found while reviewing docs in PR #30, not fixed there since it touches code samples in two separate files with the same content.
Files:
barcode-reader/general/check-current-version.md, around line 17barcode-reader/web/debug/check-current-version.md, around line 30Two problems:
–, U+2013) beforev, not a hyphen — compare to the real hyphens indynamsoft-javascript-barcodeon the same line. Will fail if copy-pasted as-is.npm -v <pkg>doesn't print a specific package's version — it prints npm's own version. The v10 section of the same file correctly usesnpm show dynamsoft-barcode-reader versionfor this purpose; the v9-era command should probably use the equivalentnpm show/npm listform instead.