isaacs / isaacs/node-tar

Add support for --delete option

Open
#192 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
JavaScript
Stars
922
Forks
281
PR merge metrics
No merged PRs in 30d

Description

I need to replace a file in the tar, and get the desired result (see #149). I would prefer though to delete the file first and then re-append it.

Would you consider adding a tar.delete, as described in https://www.gnu.org/software/tar/manual/html_section/tar_32.html#SEC66 ?

Contributor guide

Open the contributing guide

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

Start by reading the GNU tar --delete documentation linked in the issue and inspect node-tar's existing option handling. Determine the intended tar.delete behavior for replacing an archived file, then add coverage showing that the requested archive entry is removed before re-appending.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.