Skip to content

Commit

Permalink
Move to streamx for streams, brittle for testing, and b4a for b…
Browse files Browse the repository at this point in the history
…uffer operations (#143)

* Move to `streamx` for streams and `brittle` for testing

* More `b4a` and octal notation

* More `b4a`
  • Loading branch information
kasperisager committed Dec 6, 2022
1 parent e08fcd8 commit 32353cc
Show file tree
Hide file tree
Showing 12 changed files with 719 additions and 765 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test-node.yml
@@ -0,0 +1,23 @@
name: Build Status
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
node_modules
package-lock.json
sandbox.js
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
@@ -1,6 +1,6 @@
# tar-stream

tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.
tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.

Note that you still need to gunzip your data if you have a `.tar.gz`. We recommend using [gunzip-maybe](https://github.com/mafintosh/gunzip-maybe) in conjunction with this.

Expand Down Expand Up @@ -28,7 +28,7 @@ To create a pack stream use `tar.pack()` and call `pack.entry(header, [callback]

``` js
var tar = require('tar-stream')
var pack = tar.pack() // pack is a streams2 stream
var pack = tar.pack() // pack is a stream

// add a file called my-test.txt with the content "Hello World!"
pack.entry({ name: 'my-test.txt' }, 'Hello World!')
Expand Down Expand Up @@ -136,7 +136,7 @@ pack.pipe(newTarballStream)
var fs = require('fs')
var tar = require('tar-stream')

var pack = tar.pack() // pack is a streams2 stream
var pack = tar.pack() // pack is a stream
var path = 'YourTarBall.tar'
var yourTarball = fs.createWriteStream(path)

Expand Down

0 comments on commit 32353cc

Please sign in to comment.