source-cooperative / source-cooperative/csv-table

Get the file byteLength even if the server does not allow HEAD requests

Open
#5 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
TypeScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We should use a GET range request with "bytes=0-0"

Alternatively, get it from the first chunk fetch. But note that csv-range does not pass the file byte length to the yielded rows, so we would have to add this metadata.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Locate the code that requests file metadata and the first chunk fetch, then inspect how csv-range yields rows without file byte length. Implement a path that obtains the length without relying on HEAD, and confirm that yielded rows expose the required metadata when using a range request.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.