@calipsa/tar
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@calipsa/tar

NPM version Downloads Dependency status Dev Dependency status

A tool to convert buffers or strings to a TAR stream

Installation

# using npm:
npm install --save @calipsa/tar

# or if you like yarn:
yarn add @calipsa/tar

Usage

const toTar = require('@calipsa/tar')

const data = [
  [
    {
      name: 'foo.txt',
    },
    Buffer.from('foo', 'utf8')
  ],
  [
    {
      name: 'bar/qux.txt',
      mode: 0o644,
    },
    Buffer.from('random string', 'utf8')
  ],
]

const tar = toTar(data) // stream.Readable

/@calipsa/tar/

    Package Sidebar

    Install

    npm i @calipsa/tar

    Weekly Downloads

    55

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    5.69 kB

    Total Files

    12

    Last publish

    Collaborators

    • balaphp
    • inker
    • usama.ashraf