fix(docs): README package examples contain an error payload

Open Beginner friendly
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
87/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, python
Domain
documentation

Research direction

Open README.md at the Usage example around line 29 and the npm Installation examples around lines 52–53. Replace the error payloads in all three package argument positions with usable package examples or clearly marked placeholders. Done when those examples no longer show an error payload as a package name.

Written by the indexing model from the issue text.

Description

Summary

Three installation examples contain {"ok":false,"error":"No data returned"} where a package argument belongs, leaving readers without a usable example package.

Runtime or environment

Current main README; latest published release: v1.16.0. This is a README content defect, independent of operating system, Node.js or npm version. No package installation was executed.

Steps to reproduce

Read the Usage example at line 29 and the npm Installation examples at lines 52–53 in the linked README.

Expected behavior

The examples supply package names or clearly marked package placeholders.

Actual behavior

The README contains these commands (the npm command appears twice):

sfw npm install --save {"ok":false,"error":"No data returned"}
sfw pip install {"ok":false,"error":"No data returned"}

Evidence

  • Expected source: README Usage introduces these as supported package-manager commands; npm Installation introduces them as usage after installation.
  • Failure source: The linked README, lines 29 and 52–53, contains the quoted payload verbatim.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

Restoration check

Those three package-argument positions contain usable package examples or clear placeholders, with no error payload presented as a package name.

Triage assessment

  • Impact level: P2
  • Assessment status: supported
  • Impact basis: The affected introductory examples provide an error response instead of the package argument readers need to use them.
  • Workaround status: available
  • Workaround basis: Readers can supply their intended package name; the same README also contains unaffected examples using requests and flask.
Dominant language
No language data
Stars
271
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/sfw-free

All issues in SocketDev/sfw-free

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.