Skip to content

Is it possible to create a tarball from ReadableStream? #426

Open
@nguyentoanit

Description

@nguyentoanit

I'm wondering that is this possible?

  import * as tar from 'tar'

  const readableStream = createReadStream('./my-file.txt')
  
  const tarStream = tar.create({
    gzip: true,
  }, readableStream)
  
  // or
  readableStream.pipe(tarStream)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions