- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 186
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: isaacs/node-tar
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 523c5c7fef48b10811fccd12b42803c61b6aead8
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: isaacs/node-tar
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3e35515c09da615ac268254bed85fe43ee71e2f0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
13
contributors
Commits on Oct 8, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 51b6627 - Browse repository at this point
Copy the full SHA 51b6627View commit details
Commits on Mar 27, 2017
-
Configuration menu - View commit details
-
Copy full SHA for cb9f56e - Browse repository at this point
Copy the full SHA cb9f56eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0ec7cb - Browse repository at this point
Copy the full SHA b0ec7cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c83b0ef - Browse repository at this point
Copy the full SHA c83b0efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9594f82 - Browse repository at this point
Copy the full SHA 9594f82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7713bee - Browse repository at this point
Copy the full SHA 7713beeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f433777 - Browse repository at this point
Copy the full SHA f433777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e5d165 - Browse repository at this point
Copy the full SHA 0e5d165View commit details -
rewrite header as class, organize field management
This removes a lot of tar.fieldOffs[tar.fields[fieldName]] business. There's an internal Field class which knows its beginning and end, and can read a value from a buffer, or write it back to a buffer.
Configuration menu - View commit details
-
Copy full SHA for f0d0f36 - Browse repository at this point
Copy the full SHA f0d0f36View commit details -
Configuration menu - View commit details
-
Copy full SHA for d01de33 - Browse repository at this point
Copy the full SHA d01de33View commit details
Commits on Mar 30, 2017
-
Configuration menu - View commit details
-
Copy full SHA for daff038 - Browse repository at this point
Copy the full SHA daff038View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2d0625 - Browse repository at this point
Copy the full SHA d2d0625View commit details -
Configuration menu - View commit details
-
Copy full SHA for 849caaf - Browse repository at this point
Copy the full SHA 849caafView commit details -
Configuration menu - View commit details
-
Copy full SHA for e27960a - Browse repository at this point
Copy the full SHA e27960aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3ae7bc - Browse repository at this point
Copy the full SHA a3ae7bcView commit details
Commits on Mar 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 5d7c6d7 - Browse repository at this point
Copy the full SHA 5d7c6d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 286c271 - Browse repository at this point
Copy the full SHA 286c271View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c498c2 - Browse repository at this point
Copy the full SHA 2c498c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1510cfc - Browse repository at this point
Copy the full SHA 1510cfcView commit details -
Remove 'realtime' and 'security' PAX fields
They were 'reserved for a future specification' 3 decades ago and never used.
Configuration menu - View commit details
-
Copy full SHA for c66f97c - Browse repository at this point
Copy the full SHA c66f97cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fed5179 - Browse repository at this point
Copy the full SHA fed5179View commit details
Commits on Apr 3, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7e39919 - Browse repository at this point
Copy the full SHA 7e39919View commit details -
Configuration menu - View commit details
-
Copy full SHA for d736ae8 - Browse repository at this point
Copy the full SHA d736ae8View commit details
Commits on Apr 4, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 75bcb74 - Browse repository at this point
Copy the full SHA 75bcb74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42e0b7e - Browse repository at this point
Copy the full SHA 42e0b7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31bd5a1 - Browse repository at this point
Copy the full SHA 31bd5a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73f8d7c - Browse repository at this point
Copy the full SHA 73f8d7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dd73e4 - Browse repository at this point
Copy the full SHA 7dd73e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 050a245 - Browse repository at this point
Copy the full SHA 050a245View commit details -
don't force blockLen > size if even multiple of 512
Confuses bsdtar into thinking the file is over
Configuration menu - View commit details
-
Copy full SHA for 0aaf58c - Browse repository at this point
Copy the full SHA 0aaf58cView commit details -
parallel api sugar for lib/extract.js
These really need to be rethought, though. Here's the plan that's coming: For create helper methods, the options object should take a list of files to add to the tarball. If a file is specified, then write out to the file. Otherwise, return the stream, which can be piped as the user sees fit. If no cb is provided, return a Promise. Actually, just return a Promise no matter what, maybe? The goal is to mimic the command line. So, to replicate `tar czf my-tarball.tgz files and folders`, you'd do: tar.c( { gzip: <true|gzip options>, file: 'my-tarball.tgz', glob: <true|glob options> }, ['some', 'files', 'and', 'folders'] ).then(_ => { .. tarball has been created .. }) To replicate `tar cz files and folders > my-tarball.tgz`, you'd do: tar.c( { gzip: <true|gzip options>, glob: <true|glob options> }, ['some', 'files', 'and', 'folders'] ).pipe(fs.createWriteStream('my-tarball.tgz') To replicate `tar xf my-tarball.tgz` you'd do: tar.x( { file: 'my-tarball.tgz' } ).then(_=> { .. tarball has been dumped in cwd .. }) To replicate `cat my-tarball.tgz | tar x -C some-dir --strip=1`: fs.createReadStream('my-tarball.tgz').pipe( tar.x({ strip: 1, C: 'some-dir' // alias for cwd:'some-dir', also ok }) ) To replicate `tar tf my-tarball.tgz`, do this: tar.t({ file: 'my-tarball.tgz' }) .on('entry', entry => { .. do whatever with it .. }) To replicate `cat my-tarball.tgz | tar t` do: fs.createReadStream('my-tarball.tgz') .pipe(tar.t()) .on('entry', entry => { .. do whatever with it .. }) To do anything synchronous, add `sync: true` to the options.
Configuration menu - View commit details
-
Copy full SHA for da67499 - Browse repository at this point
Copy the full SHA da67499View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48c70a4 - Browse repository at this point
Copy the full SHA 48c70a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for be7c500 - Browse repository at this point
Copy the full SHA be7c500View commit details
Commits on Apr 5, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1e2af14 - Browse repository at this point
Copy the full SHA 1e2af14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c2a772 - Browse repository at this point
Copy the full SHA 4c2a772View commit details -
Configuration menu - View commit details
-
Copy full SHA for f56414d - Browse repository at this point
Copy the full SHA f56414dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb82241 - Browse repository at this point
Copy the full SHA cb82241View commit details -
While only 2 files are covered right now, getting any shortage of test coverage reported as a failure is a great practice.
Configuration menu - View commit details
-
Copy full SHA for c53534e - Browse repository at this point
Copy the full SHA c53534eView commit details -
Not much to test, since it's just 2 map objects, but whatever.
Configuration menu - View commit details
-
Copy full SHA for 46d8d13 - Browse repository at this point
Copy the full SHA 46d8d13View commit details -
header: support setting the fieldset type
Also: validate 'type' field, and split the prefix/path properly when the prefix size is 0 (because basic fieldset).
Configuration menu - View commit details
-
Copy full SHA for 4e1c77d - Browse repository at this point
Copy the full SHA 4e1c77dView commit details
Commits on Apr 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for b9de083 - Browse repository at this point
Copy the full SHA b9de083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b8ddc1 - Browse repository at this point
Copy the full SHA 2b8ddc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4dc561 - Browse repository at this point
Copy the full SHA c4dc561View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05d3de2 - Browse repository at this point
Copy the full SHA 05d3de2View commit details
Commits on Apr 7, 2017
-
Move byte counting into read-entry
Also, move 'turn a number into a date' into consistent places, so we store epoch seconds, rather than a javascript Date.toString() value.
Configuration menu - View commit details
-
Copy full SHA for 59373d0 - Browse repository at this point
Copy the full SHA 59373d0View commit details
Commits on Apr 8, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1356d4d - Browse repository at this point
Copy the full SHA 1356d4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d248b4 - Browse repository at this point
Copy the full SHA 0d248b4View commit details
Commits on Apr 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1c03d80 - Browse repository at this point
Copy the full SHA 1c03d80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fc6dd1 - Browse repository at this point
Copy the full SHA 0fc6dd1View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for ab86f8b - Browse repository at this point
Copy the full SHA ab86f8bView commit details
There are no files selected for viewing
Large diffs are not rendered by default.